diff --git a/wufuc/core.c b/wufuc/core.c index 59cc3b6..e1d061a 100644 --- a/wufuc/core.c +++ b/wufuc/core.c @@ -101,10 +101,10 @@ BOOL PatchWUAgentHMODULE(HMODULE hModule) { _tdbgprintf(_T("Found address of IsDeviceServiceable. (%p)"), fpIsDeviceServiceable); BOOL result = FALSE; LPBOOL lpbFirstRun, lpbIsCPUSupportedResult; -#ifdef _WIN64 +#ifdef _AMD64_ lpbFirstRun = (LPBOOL)(fpIsDeviceServiceable + offset00 + sizeof(uint32_t) + *(uint32_t *)(fpIsDeviceServiceable + offset00)); lpbIsCPUSupportedResult = (LPBOOL)(fpIsDeviceServiceable + offset01 + sizeof(uint32_t) + *(uint32_t *)(fpIsDeviceServiceable + offset01)); -#elif defined(_WIN32) +#elif defined(_X86_) lpbFirstRun = (LPBOOL)(*(uintptr_t *)(fpIsDeviceServiceable + offset00)); lpbIsCPUSupportedResult = (LPBOOL)(*(uintptr_t *)(fpIsDeviceServiceable + offset01)); #endif diff --git a/wufuc/core.h b/wufuc/core.h index 41da198..678e9fd 100644 --- a/wufuc/core.h +++ b/wufuc/core.h @@ -1,7 +1,6 @@ #pragma once DWORD WINAPI NewThreadProc(LPVOID lpParam); - BOOL PatchWUAgentHMODULE(HMODULE hModule); HMODULE WINAPI _LoadLibraryExA(