WIN: Don't use pointer arithmetic with void*
This commit is contained in:
@@ -161,7 +161,7 @@ LONG CALLBACK MakeCrashDump(PEXCEPTION_POINTERS ExceptionInfo)
|
||||
hMods[i], &modInfo, sizeof(MODULEINFO));
|
||||
/* If the exception address is in the range of this module.. */
|
||||
if ( (ExceptionInfo->ExceptionRecord->ExceptionAddress >= modInfo.lpBaseOfDll) &&
|
||||
(ExceptionInfo->ExceptionRecord->ExceptionAddress < (modInfo.lpBaseOfDll + modInfo.SizeOfImage))) {
|
||||
(ExceptionInfo->ExceptionRecord->ExceptionAddress < ((char *)modInfo.lpBaseOfDll + modInfo.SizeOfImage))) {
|
||||
/* ...this is the module we're looking for! */
|
||||
ipModule = hMods[i];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user