mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[UDMIHELP] Initialize output buffer if DMI string is NULL
This commit is contained in:
@@ -151,7 +151,13 @@ GetSMBiosStringW(
|
||||
SIZE_T cChars;
|
||||
|
||||
if (!DmiString)
|
||||
{
|
||||
if (cchBuf >= 1)
|
||||
{
|
||||
*pBuf = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
cChars = MultiByteToWideChar(CP_OEMCP, 0, DmiString, -1, pBuf, cchBuf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user