[SETUPAPI]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 6 Oct 2011 22:34:45 +0000 (22:34 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 6 Oct 2011 22:34:45 +0000 (22:34 +0000)
- Implement a FIXME in SetupDiOpenDeviceInfoW

svn path=/trunk/; revision=54038

reactos/dll/win32/setupapi/devinst.c

index c090132..b3a5148 100644 (file)
@@ -4826,10 +4826,10 @@ SetupDiOpenDeviceInfoW(
         PLIST_ENTRY ItemList = list->ListHead.Flink;
         while (ItemList != &list->ListHead)
         {
-            // TODO
-            //if (good one)
-            //    break;
-            FIXME("not implemented\n");
+            deviceInfo = CONTAINING_RECORD(ItemList, struct DeviceInfo, ListEntry);
+            if (!wcscmp(deviceInfo->instanceId, DeviceInstanceId))
+                break;
+            deviceInfo = NULL;
             ItemList = ItemList->Flink;
         }