View Single Post
  #7  
Old 10-29-2013, 23:42
TempoMat TempoMat is offline
Friend
 
Join Date: Jan 2006
Posts: 87
Rept. Given: 10
Rept. Rcvd 6 Times in 6 Posts
Thanks Given: 4
Thanks Rcvd at 28 Times in 21 Posts
TempoMat Reputation: 6
Second file works with a patch

In the case of the second file, the check is made only once.
The file therefore runs fine with a patch like this without the R6002 error:

original code=>
Code:
005BDB17   .  8B40 24       MOV EAX,DWORD PTR DS:[EAX+24]
005BDB1A   .  C1E8 1F       SHR EAX,1F
005BDB1D      F7D0          NOT EAX
005BDB1F      83E0 01       AND EAX,1
005BDB22      C745 FC FEFFF>MOV DWORD PTR SS:[EBP-4],-2
Patched code=>
Code:
005BDB17   .  8B40 24       MOV EAX,DWORD PTR DS:[EAX+24]
005BDB1A   .  C1E8 1F       SHR EAX,1F
005BDB1D      B8 01000000   MOV EAX,1
005BDB22      C745 FC FEFFF>MOV DWORD PTR SS:[EBP-4],-2
Reply With Quote