Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
RenardDev committed Oct 11, 2023
1 parent 5d7dbe5 commit d2d35b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,9 +1131,9 @@ bool __cdecl Sleep_RawHook(Detours::Hook::PRAW_CONTEXT pCTX) {
#ifdef _M_X64
pCTX->Stack.push(RawSleepHook.GetTrampoline());
#elif _M_IX86
unsigned int unIP = pCTX->Stack.pop();
void* pReturnAddress = pCTX->Stack.pop();
pCTX->Stack.pop();
pCTX->Stack.push(unIP);
pCTX->Stack.push(pReturnAddress);
#endif

return true;
Expand All @@ -1153,9 +1153,9 @@ bool __cdecl Sleep_RawHookMod(Detours::Hook::PRAW_CONTEXT pCTX) {
#ifdef _M_X64
pCTX->Stack.push(RawSleepHook.GetTrampoline());
#elif _M_IX86
unsigned int unIP = pCTX->Stack.pop();
void* pReturnAddress = pCTX->Stack.pop();
pCTX->Stack.pop();
pCTX->Stack.push(unIP);
pCTX->Stack.push(pReturnAddress);
#endif

return true;
Expand Down

0 comments on commit d2d35b5

Please sign in to comment.