winedbg: Check buffer for NULL before writing to it.
This commit is contained in:
parent
bf86302e19
commit
8be71fef5b
|
@ -652,7 +652,7 @@ BOOL memory_get_register(DWORD regno, DWORD** value, char* buffer, int len)
|
||||||
else
|
else
|
||||||
*value = div->pval;
|
*value = div->pval;
|
||||||
|
|
||||||
snprintf(buffer, len, div->name);
|
if (buffer) snprintf(buffer, len, div->name);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue