Skip to content

Commit

Permalink
Revert to original spacing (3 not 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
banister committed Dec 14, 2017
1 parent 05568b0 commit 4005673
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,19 +424,19 @@ static LPVOID ocraSignatureLocation(LPVOID ptr, DWORD size) {
*/
BOOL ProcessImage(LPVOID ptr, DWORD size)
{
LPVOID pSig = ocraSignatureLocation(ptr, size);
LPVOID pSig = ocraSignatureLocation(ptr, size);

if (memcmp(pSig, Signature, 4) == 0)
if (memcmp(pSig, Signature, 4) == 0)
{
DEBUG("Good signature found.");
DWORD OpcodeOffset = *(DWORD*)(pSig - 4);
LPVOID pSeg = ptr + OpcodeOffset;
return ProcessOpcodes(&pSeg);
DEBUG("Good signature found.");
DWORD OpcodeOffset = *(DWORD*)(pSig - 4);
LPVOID pSeg = ptr + OpcodeOffset;
return ProcessOpcodes(&pSeg);
}
else
{
FATAL("Bad signature in executable.");
return FALSE;
FATAL("Bad signature in executable.");
return FALSE;
}
}

Expand Down

0 comments on commit 4005673

Please sign in to comment.