[bus] Use Fdo member instead of Dev.Self
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Wed, 29 Dec 2010 05:56:26 +0000 (00:56 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Wed, 29 Dec 2010 05:56:26 +0000 (00:56 -0500)
Still removing WV_S_DEV_T details from the bus library.

src/winvblock/bus/bus.c

index 8311ba0..42d90c0 100644 (file)
@@ -279,7 +279,7 @@ winvblock__lib_func void WvBusProcessWorkItems(WV_SP_BUS_T Bus) {
             case WvBusWorkItemCmdProcessIrp_:
               irp = work_item->Context.Irp;
               io_stack_loc = IoGetCurrentIrpStackLocation(irp);
-              dev_obj = Bus->Dev.Self;
+              dev_obj = Bus->Fdo;
               driver_obj = dev_obj->DriverObject;
               driver_obj->MajorFunction[io_stack_loc->MajorFunction](
                   dev_obj,
@@ -458,7 +458,7 @@ winvblock__lib_func NTSTATUS STDCALL WvBusAddNode(
     if (
         !Bus ||
         !Node ||
-        Bus->Dev.Self->DriverObject != Node->BusPrivate_.Pdo->DriverObject
+        Bus->Fdo->DriverObject != Node->BusPrivate_.Pdo->DriverObject
       )
       return STATUS_INVALID_PARAMETER;