Skip to content

Commit

Permalink
Update DfciUpdate.c to avoid unsigned comparison checking greater tha…
Browse files Browse the repository at this point in the history
…n zero (#215)
  • Loading branch information
spbrogan authored Apr 29, 2024
1 parent 00c1144 commit 76b3a07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DfciPkg/Application/DfciMenu/DfciUpdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ BuildUsbRequest (
// replace the invalid character with an '@'.
//
for (i = 0; i < PktNameLen; i++) {
if (((PktFileName[i] >= 0x00) &&
(PktFileName[i] <= 0x1F)) ||
if ((PktFileName[i] <= 0x1F) ||
(PktFileName[i] == L'\"') ||
(PktFileName[i] == L'*') ||
(PktFileName[i] == L'/') ||
Expand Down

0 comments on commit 76b3a07

Please sign in to comment.