Initialize the status block before sending the IRP
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 15 May 2006 10:55:51 +0000 (10:55 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 15 May 2006 10:55:51 +0000 (10:55 +0000)
svn path=/trunk/; revision=21906

reactos/drivers/usb/usbhub/usbhub.c

index 826162d..1cd193b 100644 (file)
@@ -51,6 +51,10 @@ GetRootHubPointer(
                return STATUS_INSUFFICIENT_RESOURCES;
        }
        
+       /* Initialize the status block before sending the IRP */
+       IoStatus.Status = STATUS_NOT_SUPPORTED;
+       IoStatus.Information = 0;
+       
        Status = IoCallDriver(Pdo, Irp);
        
        if (Status == STATUS_PENDING)