From 796bded098fe88de529c91d0f4cbdb074c4a6bb4 Mon Sep 17 00:00:00 2001 From: Mikhail Krichanov Date: Mon, 9 Sep 2024 13:31:21 +0300 Subject: [PATCH] Dxe/Misc: Fixed CLANGPDB RELEASE. --- MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c index 6dcd7da5e6..749dd96548 100644 --- a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c +++ b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c @@ -236,7 +236,7 @@ ProtectUefiImage ( // // CPU ARCH present. Update memory attribute directly. // - if (PcdGetBool (PcdEnableUserSpace) && (PdbPointer != NULL)) { + if (PcdGetBool (PcdEnableUserSpace) && (!RETURN_ERROR (PdbStatus))) { if (AsciiStrStr (PdbPointer, "Fat") != NULL) { SetUefiImageProtectionAttributes (ImageRecord, TRUE); *IsUserImage = TRUE;