https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ec4fe621186fb21ca06e5…
commit ec4fe621186fb21ca06e54cdb05f79fa5a793084
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Oct 21 21:51:25 2017 +0200
[STORPORT] The miniport drivers HwInitialize routine returns a BOOLEAN. Handle this
properly.
CORE-13866
---
drivers/storage/port/storport/miniport.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/storage/port/storport/miniport.c
b/drivers/storage/port/storport/miniport.c
index 852ef426a4..c13a3f37a5 100644
--- a/drivers/storage/port/storport/miniport.c
+++ b/drivers/storage/port/storport/miniport.c
@@ -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 */