mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 17:16:18 +00:00
dbghelp: Displacements are optional.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
d1f7bc7c05
commit
553798224d
|
@ -1897,7 +1897,7 @@ static BOOL get_line_from_function(struct module_pair* pair, struct symt_functio
|
|||
ret = internal_line_set_nameW(pair->pcs, intl, dospath, TRUE);
|
||||
HeapFree( GetProcessHeap(), 0, dospath );
|
||||
}
|
||||
if (ret) *pdwDisplacement = addr - found_dli->u.address;
|
||||
if (ret && pdwDisplacement) *pdwDisplacement = addr - found_dli->u.address;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -2684,7 +2684,7 @@ BOOL WINAPI SymFromInlineContext(HANDLE hProcess, DWORD64 addr, ULONG inline_ctx
|
|||
if (inlined)
|
||||
{
|
||||
symt_fill_sym_info(&pair, NULL, &inlined->func.symt, si);
|
||||
*disp = addr - inlined->func.address;
|
||||
if (disp) *disp = addr - inlined->func.address;
|
||||
return TRUE;
|
||||
}
|
||||
/* fall through */
|
||||
|
|
Loading…
Reference in a new issue