mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
minor fix in SetupDiGetDeviceInstanceIdA
svn path=/trunk/; revision=19623
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user