winedbg: Check buffer for NULL before writing to it.

This commit is contained in:
James Hawkins 2007-01-11 03:11:37 -06:00 committed by Alexandre Julliard
parent bf86302e19
commit 8be71fef5b
1 changed files with 1 additions and 1 deletions

View File

@ -652,7 +652,7 @@ BOOL memory_get_register(DWORD regno, DWORD** value, char* buffer, int len)
else
*value = div->pval;
snprintf(buffer, len, div->name);
if (buffer) snprintf(buffer, len, div->name);
return TRUE;
}
}