mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
minor fix in SetupDiGetDeviceInstanceIdA
svn path=/trunk/; revision=19623
This commit is contained in:
parent
89a84ca384
commit
e0e1a6603f
|
@ -3493,7 +3493,7 @@ BOOL WINAPI SetupDiGetDeviceInstanceIdA(
|
|||
DeviceInstanceIdW, DeviceInstanceIdSize,
|
||||
RequiredSize);
|
||||
|
||||
if (DeviceInstanceIdW != NULL)
|
||||
if (ret && DeviceInstanceIdW != NULL)
|
||||
{
|
||||
if (WideCharToMultiByte(CP_ACP, 0, DeviceInstanceIdW, -1,
|
||||
DeviceInstanceId, DeviceInstanceIdSize, NULL, NULL) == 0)
|
||||
|
|
Loading…
Reference in a new issue