From 5907e8f1d09701bd3a0c12343ae7b98b38717d1f Mon Sep 17 00:00:00 2001 From: Shao Miller Date: Thu, 23 Dec 2010 09:19:34 -0500 Subject: [PATCH] [driver] Set IsBus flag on the main bus FDO --- src/winvblock/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winvblock/driver.c b/src/winvblock/driver.c index ecfc554..f1748c4 100644 --- a/src/winvblock/driver.c +++ b/src/winvblock/driver.c @@ -143,7 +143,6 @@ static NTSTATUS STDCALL driver__attach_fdo_( WV_SP_BUS_T bus; PUNICODE_STRING dev_name = NULL; PDEVICE_OBJECT fdo = NULL; - WV_SP_DEV_T dev_ptr; DBG("Entry\n"); /* Do we alreay have our main bus? */ @@ -185,6 +184,7 @@ static NTSTATUS STDCALL driver__attach_fdo_( /* Set associations for the bus, device, FDO, PDO. */ WvDevForDevObj(fdo, &bus->Dev); bus->Dev.Self = bus->Fdo = fdo; + bus->Dev.IsBus = TRUE; bus->PhysicalDeviceObject = PhysicalDeviceObject; fdo->Flags |= DO_DIRECT_IO; /* FIXME? */ fdo->Flags |= DO_POWER_INRUSH; /* FIXME? */ -- 2.17.1