mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-20 23:08:34 +00:00
winedbg: Avoid passing a non allocated buffer to HeapFree.
Latest changes to heap management can lead to a crash in this situation. Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
df65aee926
commit
a922577986
|
@ -820,7 +820,8 @@ BOOL types_print_type(const struct dbg_type* type, BOOL details, const WCHAR* va
|
|||
}
|
||||
if (varname && !printed) dbg_printf(" %ls", varname);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, ptr);
|
||||
if (name == ptr)
|
||||
HeapFree(GetProcessHeap(), 0, ptr);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue