Skip to content

Commit 0ddce45

Browse files
committed
fixed compilation with Vista SDK where "IMAGE_SIZEOF_BASE_RELOCATION" is no longer defined (GitHub issue fancycode#1)
1 parent 285b108 commit 0ddce45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

MemoryModule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
#include <stdio.h>
3434
#endif
3535

36+
#ifndef IMAGE_SIZEOF_BASE_RELOCATION
37+
// Vista SDKs no longer define IMAGE_SIZEOF_BASE_RELOCATION!?
38+
#define IMAGE_SIZEOF_BASE_RELOCATION (sizeof(IMAGE_BASE_RELOCATION))
39+
#endif
40+
3641
#include "MemoryModule.h"
3742

3843
typedef struct {

0 commit comments

Comments
 (0)