Commit 89832cde authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

dbghelp: Add a null check for optional output parameter for function SymFromAddr.

parent 0b5b54e9
......@@ -1229,7 +1229,8 @@ BOOL WINAPI SymFromAddr(HANDLE hProcess, DWORD64 Address,
if ((sym = symt_find_nearest(pair.effective, Address)) == NULL) return FALSE;
symt_fill_sym_info(&pair, NULL, &sym->symt, Symbol);
*Displacement = Address - Symbol->Address;
if (Displacement)
*Displacement = Address - Symbol->Address;
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