From 4005673549b4417f2623aebb45cb75b1b9d139b0 Mon Sep 17 00:00:00 2001 From: John Mair Date: Thu, 14 Dec 2017 04:17:56 +0100 Subject: [PATCH] Revert to original spacing (3 not 2) --- src/stub.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/stub.c b/src/stub.c index 54995f39..09a23247 100644 --- a/src/stub.c +++ b/src/stub.c @@ -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; } }