[httpdisk] Handle IRP_MJ_PNP:IRP_MN_START_DEVICE
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 17:38:03 +0000 (12:38 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 17:38:03 +0000 (12:38 -0500)
src/httpdisk/httpdisk.c

index 9d5e873..ceed61a 100644 (file)
@@ -968,6 +968,10 @@ static NTSTATUS HttpdiskIrpPnp_(IN PDEVICE_OBJECT dev_obj, IN PIRP irp) {
 
     minor = IoGetCurrentIrpStackLocation(irp)->MinorFunction;
     switch (minor) {
+        case IRP_MN_START_DEVICE:
+          DBG("IRP_MN_START_DEVICE for dev %p.\n", dev);
+          return WvlIrpComplete(irp, 0, STATUS_SUCCESS);
+
         case IRP_MN_QUERY_CAPABILITIES:
           DBG("IRP_MN_QUERY_CAPABILITIES for dev %p.\n", dev);
           return WvlIrpComplete(irp, 0, STATUS_NOT_SUPPORTED);