From b2e7e1e5464fb6369c827cf79527ab2cfbb87ef3 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Tue, 1 Mar 2005 20:10:11 +0000 Subject: [PATCH] fixed casting bug on some compilers (reported by John S. Brumbelow) --- MemoryModule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MemoryModule.c b/MemoryModule.c index 10a6c30..1a963e7 100644 --- a/MemoryModule.c +++ b/MemoryModule.c @@ -203,7 +203,7 @@ PerformBaseRelocation(PMEMORYMODULE module, DWORD delta) } // advance to next relocation block - (char *)relocation += relocation->SizeOfBlock; + relocation = (PIMAGE_BASE_RELOCATION)(((DWORD)relocation) + relocation->SizeOfBlock); } } }