MdeModulePkg: Fix TerminalDxe VS2013 build failure

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Roy Franz <roy.franz@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17910 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Roy Franz 2015-07-10 03:21:09 +00:00 committed by niruiyu
parent 2a618e50b5
commit 5421247d1e
1 changed files with 2 additions and 2 deletions

View File

@ -1568,9 +1568,9 @@ UnicodeToEfiKey (
if (TerminalDevice->TerminalType == TTYTERMTYPE) { if (TerminalDevice->TerminalType == TTYTERMTYPE) {
if (UnicodeChar == '~' && TerminalDevice->TtyEscapeIndex <= 2) { if (UnicodeChar == '~' && TerminalDevice->TtyEscapeIndex <= 2) {
UINTN EscCode; UINT16 EscCode;
TerminalDevice->TtyEscapeStr[TerminalDevice->TtyEscapeIndex] = 0; /* Terminate string */ TerminalDevice->TtyEscapeStr[TerminalDevice->TtyEscapeIndex] = 0; /* Terminate string */
EscCode = StrDecimalToUintn(TerminalDevice->TtyEscapeStr); EscCode = (UINT16) StrDecimalToUintn(TerminalDevice->TtyEscapeStr);
switch (EscCode) { switch (EscCode) {
case 3: case 3:
Key.ScanCode = SCAN_DELETE; Key.ScanCode = SCAN_DELETE;