[STORPORT] The miniport drivers HwInitialize routine returns a BOOLEAN. Handle this...
authorEric Kohl <eric.kohl@reactos.org>
Sat, 21 Oct 2017 19:51:25 +0000 (21:51 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 21 Oct 2017 19:51:25 +0000 (21:51 +0200)
CORE-13866

drivers/storage/port/storport/miniport.c

index 852ef42..c13a3f3 100644 (file)
@@ -335,15 +335,15 @@ NTSTATUS
 MiniportHwInitialize(
     _In_ PMINIPORT Miniport)
 {
-    NTSTATUS Status;
+    BOOLEAN Result;
 
     DPRINT1("MiniportHwInitialize(%p)\n", Miniport);
 
     /* Call the miniport HwInitialize routine */
-    Status = Miniport->InitData->HwInitialize(&Miniport->MiniportExtension->HwDeviceExtension);
-    DPRINT1("HwInitialize() returned 0x%08lx\n", Status);
+    Result = Miniport->InitData->HwInitialize(&Miniport->MiniportExtension->HwDeviceExtension);
+    DPRINT1("HwInitialize() returned %u\n", Result);
 
-    return Status;
+    return Result ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;
 }
 
 /* EOF */