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:
jcarsey 2012-07-23 16:32:09 +00:00
parent c6a7fef8ea
commit 05916c1532
1 changed files with 3 additions and 3 deletions

View File

@ -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)) {