[USBHUB]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 13 Feb 2012 11:45:34 +0000 (11:45 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 13 Feb 2012 11:45:34 +0000 (11:45 +0000)
- Remove some hardcoded constants

svn path=/trunk/; revision=55573

reactos/drivers/usb/usbhub/fdo.c

index 6333d1e..ccfd794 100644 (file)
@@ -1570,7 +1570,7 @@ USBHUB_FdoHandlePnp(
             Status = QueryInterface(RootHubDeviceObject,
                                     USB_BUS_INTERFACE_HUB_GUID,
                                     sizeof(USB_BUS_INTERFACE_HUB_V5),
-                                    5,
+                                    USB_BUSIF_HUB_VERSION_5,
                                     (PVOID)&HubDeviceExtension->HubInterface);
 
             if (!NT_SUCCESS(Status))
@@ -1587,7 +1587,7 @@ USBHUB_FdoHandlePnp(
             Status = QueryInterface(RootHubDeviceObject,
                                     USB_BUS_INTERFACE_USBDI_GUID,
                                     sizeof(USB_BUS_INTERFACE_USBDI_V2),
-                                    2,
+                                    USB_BUSIF_USBDI_VERSION_2,
                                     (PVOID)&HubDeviceExtension->UsbDInterface);
 
             if (!NT_SUCCESS(Status))