mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
Core/Dxe/Misc: Fixed string comparison bug.
This commit is contained in:
parent
be8f6f968e
commit
d4e1092dc7
@ -236,7 +236,7 @@ ProtectUefiImage (
|
||||
//
|
||||
// CPU ARCH present. Update memory attribute directly.
|
||||
//
|
||||
if (PcdGetBool (PcdEnableUserSpace)) {
|
||||
if (PcdGetBool (PcdEnableUserSpace) && (PdbPointer != NULL)) {
|
||||
if (AsciiStrStr (PdbPointer, "Fat") != NULL) {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, TRUE);
|
||||
*IsUserImage = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user