mirror of https://github.com/acidanthera/audk.git
Add checking for ChildHandle.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4701 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c7b616cf09
commit
adc863cbd4
|
@ -184,6 +184,13 @@ WinNtBlockIoDriverDiagnosticsRunDiagnostics (
|
|||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
//
|
||||
// This is a device driver, so ChildHandle must be NULL.
|
||||
//
|
||||
if (ChildHandle != NULL) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
// Validate controller handle
|
||||
//
|
||||
|
@ -207,6 +214,7 @@ WinNtBlockIoDriverDiagnosticsRunDiagnostics (
|
|||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
if (Status == EFI_UNSUPPORTED) {
|
||||
return Status;
|
||||
} else if (Status != EFI_ALREADY_STARTED) {
|
||||
|
|
Loading…
Reference in New Issue