Skip to content

Commit

Permalink
Dxe/Misc: Fixed CLANGPDB RELEASE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Krichanov committed Sep 9, 2024
1 parent a29bd72 commit 796bded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 796bded

Please sign in to comment.