X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=InOsEmuPkg%2FEmuBlockIoDxe%2FEmuBlockIo.c;fp=InOsEmuPkg%2FEmuBlockIoDxe%2FEmuBlockIo.c;h=b679d8f72aef4483ddfb2a5ec35b5a2c9c6109f0;hb=572287f8bb38953891c53a43d2231ce1e3f36523;hp=e8917326f203a4b32dd9f861a579b2ecc7c6c74c;hpb=1812735204688fed3d4399dc02a29eaed311a640;p=mirror_edk2.git diff --git a/InOsEmuPkg/EmuBlockIoDxe/EmuBlockIo.c b/InOsEmuPkg/EmuBlockIoDxe/EmuBlockIo.c index e8917326f2..b679d8f72a 100644 --- a/InOsEmuPkg/EmuBlockIoDxe/EmuBlockIo.c +++ b/InOsEmuPkg/EmuBlockIoDxe/EmuBlockIo.c @@ -420,7 +420,7 @@ EmuBlockIoDriverBindingSupported ( ) { EFI_STATUS Status; - EMU_IO_THUNK_PROTOCOL *EmuIoThunk; + EMU_IO_THUNK_PROTOCOL *EmuIoThunk; // // Open the IO Abstraction(s) needed to perform the supported test @@ -520,9 +520,7 @@ EmuBlockIoDriverBindingStart ( if (EFI_ERROR (Status)) { return Status; } - // - // Set DiskType - // + if (!CompareGuid (EmuIoThunk->Protocol, &gEmuBlockIoProtocolGuid)) { Status = EFI_UNSUPPORTED; goto Done;