dbghelp: Fix a pointer cast.
This commit is contained in:
parent
08e53fc048
commit
ff55fc9bea
|
@ -65,7 +65,7 @@ static BOOL CALLBACK read_mem(HANDLE hProcess, DWORD addr, void* buffer,
|
|||
DWORD size, LPDWORD nread)
|
||||
{
|
||||
SIZE_T r;
|
||||
if (!ReadProcessMemory(hProcess, (void*)addr, buffer, size, &r)) return FALSE;
|
||||
if (!ReadProcessMemory(hProcess, (void*)(DWORD_PTR)addr, buffer, size, &r)) return FALSE;
|
||||
if (nread) *nread = r;
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue