Skip to content

Commit

Permalink
MdeModulePkg/HiiDatabase: Use sizeof instead of AsciiStrSize for stat…
Browse files Browse the repository at this point in the history
…ic string size

Matches tianocore/edk2@0bcc503
  • Loading branch information
mikebeaton committed Sep 12, 2023
1 parent afabb7d commit 204318a
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 (AsciiStrSize ("en-US"), "en-US");
BestLanguage = AllocateCopyPool (sizeof ("en-US"), "en-US");
ASSERT (BestLanguage != NULL);
}

Expand Down

0 comments on commit 204318a

Please sign in to comment.