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