mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 15:51:49 +00:00
minor fix in SetupDiGetDeviceInstanceIdA
svn path=/trunk/; revision=19623
This commit is contained in:
parent
89a84ca384
commit
e0e1a6603f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue