Skip to content

Commit

Permalink
MdeModulePkg/HiiDatabase: Fix incorrect AllocateCopyPool size
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Aug 24, 2023
1 parent e1ad43a commit 89eade0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ GetNameFromId (
NULL
);
if (BestLanguage == NULL) {
BestLanguage = AllocateCopyPool (AsciiStrLen ("en-US"), "en-US");
BestLanguage = AllocateCopyPool (AsciiStrSize ("en-US"), "en-US");
ASSERT (BestLanguage != NULL);
}

Expand Down

0 comments on commit 89eade0

Please sign in to comment.