mirror of https://github.com/acidanthera/audk.git
Fix error when replace HexStringToBuf
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8047 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a9e7937ab0
commit
634303c96f
|
@ -442,7 +442,7 @@ GetValueOfNumber (
|
|||
if ((Index & 1) == 0) {
|
||||
Buf [Index/2] = DigitUint8;
|
||||
} else {
|
||||
Buf [Index/2] = (UINT8) ((Buf [Index/2] << 4) + DigitUint8);
|
||||
Buf [Index/2] = (UINT8) ((DigitUint8 << 4) + Buf [Index/2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1179,7 +1179,7 @@ GetQuestionValue (
|
|||
if ((Index & 1) == 0) {
|
||||
Dst [Index/2] = DigitUint8;
|
||||
} else {
|
||||
Dst [Index/2] = (UINT8) ((Dst [Index/2] << 4) + DigitUint8);
|
||||
Dst [Index/2] = (UINT8) ((DigitUint8 << 4) + Dst [Index/2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1288,7 +1288,7 @@ GetQuestionValue (
|
|||
if ((Index & 1) == 0) {
|
||||
Dst [Index/2] = DigitUint8;
|
||||
} else {
|
||||
Dst [Index/2] = (UINT8) ((Dst [Index/2] << 4) + DigitUint8);
|
||||
Dst [Index/2] = (UINT8) ((DigitUint8 << 4) + Dst [Index/2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue