From 0ddce45dc506afe79d095f21ee815e6892e040af Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 17 Jan 2011 21:25:27 +0100 Subject: [PATCH] fixed compilation with Vista SDK where "IMAGE_SIZEOF_BASE_RELOCATION" is no longer defined (GitHub issue #1) --- MemoryModule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MemoryModule.c b/MemoryModule.c index 201b651..7e94232 100644 --- a/MemoryModule.c +++ b/MemoryModule.c @@ -33,6 +33,11 @@ #include #endif +#ifndef IMAGE_SIZEOF_BASE_RELOCATION +// Vista SDKs no longer define IMAGE_SIZEOF_BASE_RELOCATION!? +#define IMAGE_SIZEOF_BASE_RELOCATION (sizeof(IMAGE_BASE_RELOCATION)) +#endif + #include "MemoryModule.h" typedef struct {