X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellLib%2FUefiShellLib.c;h=75ecfa503e82d2daed41d82c4ae955e3c399c05c;hb=05916c1532d79d875eac14c71c266e1912582532;hp=1929349b2038aa2a7f4f197eb532ef442d7459b7;hpb=c6a7fef8eacb0e8c035097a532e7d7864e0b997c;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/ShellPkg/Library/UefiShellLib/UefiShellLib.c index 1929349b20..75ecfa503e 100644 --- a/ShellPkg/Library/UefiShellLib/UefiShellLib.c +++ b/ShellPkg/Library/UefiShellLib/UefiShellLib.c @@ -3650,10 +3650,10 @@ InternalShellStrHexToUint64 ( Result = 0; // - // Skip spaces if requested + // stop at spaces if requested // - while (StopAtSpace && *String == L' ') { - String++; + if (StopAtSpace && *String == L' ') { + break; } while (ShellIsHexaDecimalDigitCharacter (*String)) {