VC++ 6 compilo.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2008-10-07 09:29:45 +00:00
parent 08393b0503
commit cd937026b3

View File

@@ -1200,9 +1200,10 @@ void CorruptionTestCase::runTest()
CreateArchive(out);
TestInputStream in(out, 0);
wxFileOffset len = in.GetLength();
int pos, size;
// try flipping one byte in the archive
for (int pos = 0; pos < len; pos++) {
for (pos = 0; pos < len; pos++) {
char n = in[pos];
in[pos] = ~n;
ExtractArchive(in);
@@ -1211,7 +1212,7 @@ void CorruptionTestCase::runTest()
}
// try zeroing one byte in the archive
for (int pos = 0; pos < len; pos++) {
for (pos = 0; pos < len; pos++) {
char n = in[pos];
in[pos] = 0;
ExtractArchive(in);
@@ -1220,7 +1221,7 @@ void CorruptionTestCase::runTest()
}
// try chopping the archive off
for (int size = 1; size <= len; size++) {
for (size = 1; size <= len; size++) {
in.Chop(size);
ExtractArchive(in);
in.Rewind();