From 1b65880229e0639d17f0491bbf93419a546b3bcd Mon Sep 17 00:00:00 2001 From: mdkinney Date: Thu, 9 Jun 2011 00:11:28 +0000 Subject: Fix ICC build issues git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11773 6f19259b-4bc3-4df7-8a09-765794883524 --- Nt32Pkg/WinNtGopDxe/WinNtGopInput.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Nt32Pkg/WinNtGopDxe') diff --git a/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c b/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c index 3b91da8f9f..5defc1601c 100644 --- a/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c +++ b/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c @@ -246,12 +246,14 @@ Returns: VOID WinNtGopSimpleTextInTimerHandler ( - IN EFI_EVENT Event, - IN GOP_PRIVATE_DATA *Private + IN EFI_EVENT Event, + IN VOID *Context ) { - EFI_KEY_DATA KeyData; + GOP_PRIVATE_DATA *Private; + EFI_KEY_DATA KeyData; + Private = (GOP_PRIVATE_DATA *)Context; while (GopPrivateDeleteQ (Private, &Private->QueueForNotify, &KeyData) == EFI_SUCCESS) { GopPrivateInvokeRegisteredFunction (Private, &KeyData); } @@ -330,9 +332,9 @@ GopPrivateAddKey ( (KeyData.Key.UnicodeChar >= 1) && (KeyData.Key.UnicodeChar <= 26) ) { if ((Private->LeftShift || Private->RightShift) == Private->CapsLock) { - KeyData.Key.UnicodeChar = KeyData.Key.UnicodeChar + L'a' - 1; + KeyData.Key.UnicodeChar = (CHAR16)(KeyData.Key.UnicodeChar + L'a' - 1); } else { - KeyData.Key.UnicodeChar = KeyData.Key.UnicodeChar + L'A' - 1; + KeyData.Key.UnicodeChar = (CHAR16)(KeyData.Key.UnicodeChar + L'A' - 1); } } @@ -352,9 +354,9 @@ GopPrivateAddKey ( // if (Private->LeftCtrl || Private->RightCtrl) { if ((KeyData.Key.UnicodeChar >= L'a') && (KeyData.Key.UnicodeChar <= L'z')) { - KeyData.Key.UnicodeChar = KeyData.Key.UnicodeChar - L'a' + 1; + KeyData.Key.UnicodeChar = (CHAR16)(KeyData.Key.UnicodeChar - L'a' + 1); } else if ((KeyData.Key.UnicodeChar >= L'A') && (KeyData.Key.UnicodeChar <= L'Z')) { - KeyData.Key.UnicodeChar = KeyData.Key.UnicodeChar - L'A' + 1; + KeyData.Key.UnicodeChar = (CHAR16)(KeyData.Key.UnicodeChar - L'A' + 1); } } GopPrivateAddQ (Private, &Private->QueueForRead, &KeyData); -- cgit v1.2.3