mirror of https://github.com/acidanthera/audk.git
ShellPkg: Update string to number conversion to correctly stop at spaces if so requested.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: jaben carsey <jaben.carsey@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13548 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c6a7fef8ea
commit
05916c1532
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue