Don't fill twice the output buffer. Bug spotted by Filip
authorHervé Poussineau <hpoussin@reactos.org>
Fri, 2 Sep 2005 19:05:01 +0000 (19:05 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Fri, 2 Sep 2005 19:05:01 +0000 (19:05 +0000)
svn path=/trunk/; revision=17606

reactos/lib/setupapi/devinst.c

index b88d805..f62dc26 100644 (file)
@@ -3873,12 +3873,6 @@ SetupDiOpenDeviceInfoW(
         if (deviceInfo)
         {
             /* good one found */
         if (deviceInfo)
         {
             /* good one found */
-            if (DeviceInfoData)
-            {
-                memcpy(&DeviceInfoData->ClassGuid, &deviceInfo->ClassGuid, sizeof(GUID));
-                DeviceInfoData->DevInst = 0; /* FIXME */
-                DeviceInfoData->Reserved = (ULONG_PTR)deviceInfo;
-            }
             ret = TRUE;
         }
         else
             ret = TRUE;
         }
         else