winedbg: Check for buffer being NULL.

This commit is contained in:
Marcus Meissner 2009-01-31 19:53:19 +01:00 committed by Alexandre Julliard
parent 4d8fffb24b
commit 102a3b9892
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{
snprintf(buffer, sz, "Couldn't dereference pointer for const value");
if (buffer) snprintf(buffer, sz, "Couldn't dereference pointer for const value");
return FALSE;
}
pdw = (DWORD*)lexeme_alloc_size(sizeof(*pdw));