From: Todd D. P. <ci...@us...> - 2003-09-08 23:39:19
|
Log Message: ----------- Fixed illegal C++ syntax. Gonna guess VS.Net is either (a) too lenient or (b) wrong ebcause parens do not scope according to the ARM Modified Files: -------------- /cvsroot/decaldev/source/Inject: Inject.cpp Revision Data ------------- Index: Inject.cpp =================================================================== RCS file: /cvsroot/decaldev/source/Inject/Inject.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- Inject.cpp 30 Aug 2003 00:43:22 -0000 1.27 +++ Inject.cpp 8 Sep 2003 23:37:43 -0000 1.28 @@ -474,7 +474,9 @@ /* FILE *f = fopen( "C:\\decal\\log.txt", "a+" ); fprintf( f, "iLen = %d\nszPatchPattern = %s\nszPatternArray = ", iLen, szPatchPattern ); */ - for( int i = 0; i < iLen; ++i ) + int i; + + for( i = 0; i < iLen; ++i ) // { szPatternArray[ i ] = strtoul( szPatchPattern + (i*3), NULL, 16 ); // fprintf( f, "%02X ", szPatternArray[ i ] ); @@ -485,7 +487,7 @@ bool bAbort = true; - for( int i = 0; i < lMaxOffset; ++i, ++pAddy ) + for( i = 0; i < lMaxOffset; ++i, ++pAddy ) { // peek at current byte if( *pAddy == szPatternArray[ 0 ] ) |