diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-09 00:11:28 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-09 00:11:28 +0000 |
commit | 1b65880229e0639d17f0491bbf93419a546b3bcd (patch) | |
tree | cb0d54e7630837f43641a46b5c80d1d5236a8ddf /Nt32Pkg/WinNtGopDxe | |
parent | 21ce7a41791e461f5d92f6ce3c712b8dd1f33a54 (diff) | |
download | edk2-platforms-1b65880229e0639d17f0491bbf93419a546b3bcd.tar.xz |
Fix ICC build issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11773 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtGopDxe')
-rw-r--r-- | Nt32Pkg/WinNtGopDxe/WinNtGopInput.c | 16 |
1 files changed, 9 insertions, 7 deletions
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);
|