summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Library/UefiShellLib/UefiShellLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/ShellPkg/Library/UefiShellLib/UefiShellLib.c
index 75ecfa503e..1929349b20 100644
--- a/ShellPkg/Library/UefiShellLib/UefiShellLib.c
+++ b/ShellPkg/Library/UefiShellLib/UefiShellLib.c
@@ -3650,10 +3650,10 @@ InternalShellStrHexToUint64 (
Result = 0;
//
- // stop at spaces if requested
+ // Skip spaces if requested
//
- if (StopAtSpace && *String == L' ') {
- break;
+ while (StopAtSpace && *String == L' ') {
+ String++;
}
while (ShellIsHexaDecimalDigitCharacter (*String)) {