Commit 3f8215d2 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

dbghelp: nread can be NULL for read_mem and read_mem64.

parent d7471269
......@@ -62,7 +62,7 @@ static BOOL CALLBACK read_mem(HANDLE hProcess, DWORD addr, void* buffer,
{
SIZE_T r;
if (!ReadProcessMemory(hProcess, (void*)addr, buffer, size, &r)) return FALSE;
*nread = r;
if (nread) *nread = r;
return TRUE;
}
......@@ -71,7 +71,7 @@ static BOOL CALLBACK read_mem64(HANDLE hProcess, DWORD64 addr, void* buffer,
{
SIZE_T r;
if (!ReadProcessMemory(hProcess, (void*)(DWORD_PTR)addr, buffer, size, &r)) return FALSE;
*nread = r;
if (nread) *nread = r;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment