Revision: 16151
http://sourceforge.net/p/edk2/code/16151
Author: ydong10
Date: 2014-09-22 05:40:30 +0000 (Mon, 22 Sep 2014)
Log Message:
-----------
Correct the convert hex string to decimal value logic.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Ruiyu Ni <[email protected]>
Modified Paths:
--------------
branches/UDK2014.SP1/IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.c
Modified: branches/UDK2014.SP1/IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.c
===================================================================
--- branches/UDK2014.SP1/IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.c
2014-09-22 05:37:16 UTC (rev 16150)
+++ branches/UDK2014.SP1/IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.c
2014-09-22 05:40:30 UTC (rev 16151)
@@ -432,9 +432,9 @@
*OptionNumber = 0;
for (Index = 3; Index < 7; Index++) {
if ((Name[Index] >= L'0') && (Name[Index] <= L'9')) {
- *OptionNumber = *OptionNumber * 10 + Name[Index] - L'0';
+ *OptionNumber = *OptionNumber * 16 + Name[Index] - L'0';
} else if ((Name[Index] >= L'A') && (Name[Index] <= L'F')) {
- *OptionNumber = *OptionNumber * 10 + Name[Index] - L'A';
+ *OptionNumber = *OptionNumber * 16 + Name[Index] - L'A' + 10;
} else {
return FALSE;
}
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits