From e0e1a6603f4de4c281edac4a47ae4e8efd6f2f91 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 26 Nov 2005 10:18:24 +0000 Subject: [PATCH] minor fix in SetupDiGetDeviceInstanceIdA svn path=/trunk/; revision=19623 --- reactos/lib/setupapi/devinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/setupapi/devinst.c b/reactos/lib/setupapi/devinst.c index 86e2dade38e..85ef9151e93 100644 --- a/reactos/lib/setupapi/devinst.c +++ b/reactos/lib/setupapi/devinst.c @@ -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)