diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/DebugLib.h index e249e57925..82f9e6fdba 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -321,7 +321,7 @@ DebugClearMemoryEnabled ( _ASSERT (Guid already installed in database); \ } \ } else { \ - if (!EFI_ERROR (gBS->LocateProtocol (Guid, Handle, &Instance))) { \ + if (!EFI_ERROR (gBS->HandleProtocol (Guid, Handle, &Instance))) { \ _ASSERT (Guid already installed on Handle); \ } \ } \