Skip to content

Commit b2e7e1e

Browse files
committed
fixed casting bug on some compilers (reported by John S. Brumbelow)
1 parent e952dd3 commit b2e7e1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MemoryModule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ PerformBaseRelocation(PMEMORYMODULE module, DWORD delta)
203203
}
204204

205205
// advance to next relocation block
206-
(char *)relocation += relocation->SizeOfBlock;
206+
relocation = (PIMAGE_BASE_RELOCATION)(((DWORD)relocation) + relocation->SizeOfBlock);
207207
}
208208
}
209209
}

0 commit comments

Comments
 (0)