From 6cec95529c803049f0b48a753ee0d8f09b73ee0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=CE=B9A=D1=95=D1=95a=D1=95=D1=95=CE=B9N?= Date: Thu, 7 Apr 2016 22:03:54 +0430 Subject: [PATCH] Fixed compiling errors with Debug mode build There is an error on compiling with Debug mode (I tried in VS2015 Update1): 1>Utils.obj : error LNK2019: unresolved external symbol _GetModuleInformation@16 referenced in function "unsigned long __cdecl FindPattern(char *,char *)" (?FindPattern@@YAKPAD0@Z) --- src/main.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.h b/src/main.h index 051b3ae..cad3f84 100644 --- a/src/main.h +++ b/src/main.h @@ -33,6 +33,9 @@ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN + #ifndef PSAPI_VERSION + #define PSAPI_VERSION 2 + #endif #define SLEEP(x) { Sleep(x); } #define OS_NAME "Windows"