From d333da2678acdd3b5fb428156143d9289eca6401 Mon Sep 17 00:00:00 2001 From: rglarix Date: Thu, 9 Mar 2017 11:57:55 +0100 Subject: [PATCH 1/2] change VLDSetReportHook macro to match function signature --- src/vld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vld.h b/src/vld.h index b591ff3e..66b73aa9 100644 --- a/src/vld.h +++ b/src/vld.h @@ -341,7 +341,7 @@ __declspec(dllexport) int VLDResolveCallstacks(); #define VLDGetOptions() (0) #define VLDGetReportFilename(a) #define VLDSetOptions(a, b, c) -#define VLDSetReportHook(a, b) +#define VLDSetReportHook(a, b) (-1) #define VLDSetModulesList(a) #define VLDGetModulesList(a, b) (FALSE) #define VLDSetReportOptions(a, b) From 81b43ed4217448b9fd1ecdac8a676885064f1487 Mon Sep 17 00:00:00 2001 From: rglarix Date: Thu, 9 Mar 2017 12:02:48 +0100 Subject: [PATCH 2/2] %zu is a valid format specifier only from vs2015 onwards --- src/utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility.cpp b/src/utility.cpp index e3c32fe4..c431b7f5 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -569,7 +569,7 @@ BOOL PatchImport (HMODULE importmodule, moduleentry_t *patchModule) DbgReport(L"Hook dll \"%S\" import %S!%S()\n", strrchr(pszBuffer, '\\') + 1, patchModule->exportModuleName, importname); } else { - DbgReport(L"Hook dll \"%S\" import %S!%zu()\n", + DbgReport(L"Hook dll \"%S\" import %S!%Iu()\n", strrchr(pszBuffer, '\\') + 1, patchModule->exportModuleName, importname); } #endif @@ -878,7 +878,7 @@ VOID RestoreImport (HMODULE importmodule, moduleentry_t* module) DbgReport(L"UnHook dll \"%S\" import %S!%S()\n", strrchr(pszBuffer, '\\') + 1, module->exportModuleName, importname); } else { - DbgReport(L"UnHook dll \"%S\" import %S!%zu()\n", + DbgReport(L"UnHook dll \"%S\" import %S!%Iu()\n", strrchr(pszBuffer, '\\') + 1, module->exportModuleName, importname); } #endif