Dxe/Misc: Fixed CLANGPDB RELEASE.

This commit is contained in:
Mikhail Krichanov 2024-09-09 13:31:21 +03:00
parent a29bd72a05
commit 796bded098
1 changed files with 1 additions and 1 deletions

View File

@ -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;