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
Result = 0;\r
\r
//\r
- // Skip spaces if requested\r
+ // stop at spaces if requested\r
//\r
- while (StopAtSpace && *String == L' ') {\r
- String++;\r
+ if (StopAtSpace && *String == L' ') {\r
+ break;\r
}\r
\r
while (ShellIsHexaDecimalDigitCharacter (*String)) {\r