From ebe8b3e49287d2ebf63a95d487110d5e062b3fe6 Mon Sep 17 00:00:00 2001 From: zeffy Date: Mon, 19 Jun 2017 14:16:37 -0700 Subject: [PATCH] fix #ifdefs --- wufuc/core.c | 4 ++-- wufuc/core.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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(