winedbg: Check for buffer being NULL.
This commit is contained in:
parent
4d8fffb24b
commit
102a3b9892
|
@ -102,7 +102,7 @@ static BOOL fill_sym_lvalue(const SYMBOL_INFO* sym, ULONG base,
|
||||||
*/
|
*/
|
||||||
if (!types_get_info(&type, TI_GET_VALUE, &v) || (v.n1.n2.vt & VT_BYREF))
|
if (!types_get_info(&type, TI_GET_VALUE, &v) || (v.n1.n2.vt & VT_BYREF))
|
||||||
{
|
{
|
||||||
snprintf(buffer, sz, "Couldn't dereference pointer for const value");
|
if (buffer) snprintf(buffer, sz, "Couldn't dereference pointer for const value");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
pdw = (DWORD*)lexeme_alloc_size(sizeof(*pdw));
|
pdw = (DWORD*)lexeme_alloc_size(sizeof(*pdw));
|
||||||
|
|
Loading…
Reference in New Issue