Dxe/Misc: Fixed CLANGPDB RELEASE.

This commit is contained in:
Mikhail Krichanov 2024-09-09 13:31:21 +03:00
parent a29bd72a05
commit 796bded098

View File

@ -236,7 +236,7 @@ ProtectUefiImage (
// //
// CPU ARCH present. Update memory attribute directly. // CPU ARCH present. Update memory attribute directly.
// //
if (PcdGetBool (PcdEnableUserSpace) && (PdbPointer != NULL)) { if (PcdGetBool (PcdEnableUserSpace) && (!RETURN_ERROR (PdbStatus))) {
if (AsciiStrStr (PdbPointer, "Fat") != NULL) { if (AsciiStrStr (PdbPointer, "Fat") != NULL) {
SetUefiImageProtectionAttributes (ImageRecord, TRUE); SetUefiImageProtectionAttributes (ImageRecord, TRUE);
*IsUserImage = TRUE; *IsUserImage = TRUE;