diff --git a/ntoskrnl/io/pnpmgr/pnpres.c b/ntoskrnl/io/pnpmgr/pnpres.c index 982ffe2afed..2316cce87f4 100644 --- a/ntoskrnl/io/pnpmgr/pnpres.c +++ b/ntoskrnl/io/pnpmgr/pnpres.c @@ -453,7 +453,7 @@ IopFixupResourceListWithRequirements( FoundResource = FALSE; } - break; + return STATUS_UNSUCCESSFUL; default: DPRINT1("Unsupported resource type: %x\n", IoDesc->Type); @@ -466,7 +466,7 @@ IopFixupResourceListWithRequirements( { /* Break out of this loop and try the next list */ DPRINT1("Unable to satisfy required resource in list %lu\n", i); - break; + return STATUS_UNSUCCESSFUL; } else if (!FoundResource) {