mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[UDMIHELP] Initialize output buffer if DMI string is NULL
This commit is contained in:
parent
c356804550
commit
bae6e075e0
|
@ -151,7 +151,13 @@ GetSMBiosStringW(
|
||||||
SIZE_T cChars;
|
SIZE_T cChars;
|
||||||
|
|
||||||
if (!DmiString)
|
if (!DmiString)
|
||||||
|
{
|
||||||
|
if (cchBuf >= 1)
|
||||||
|
{
|
||||||
|
*pBuf = 0;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
cChars = MultiByteToWideChar(CP_OEMCP, 0, DmiString, -1, pBuf, cchBuf);
|
cChars = MultiByteToWideChar(CP_OEMCP, 0, DmiString, -1, pBuf, cchBuf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue