From fd7f14ab56b7dded8757d7b3ff7ee4f3fa55951a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 9 Aug 2001 05:51:34 +0000 Subject: [PATCH] Fixed compiling on Windows CE --- src/video/windib/SDL_dibevents.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/video/windib/SDL_dibevents.c b/src/video/windib/SDL_dibevents.c index 3a48402b6..841a0cab5 100644 --- a/src/video/windib/SDL_dibevents.c +++ b/src/video/windib/SDL_dibevents.c @@ -90,14 +90,14 @@ LONG #ifdef NO_GETKEYBOARDSTATE /* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */ if ( SDL_TranslateUNICODE ) { - MSG msg; - - msg.hwnd = hwnd; - msg.message = msg; - msg.wParam = wParam; - msg.lParam = lParam; - msg.time = 0; - if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { + MSG m; + + m.hwnd = hwnd; + m.message = msg; + m.wParam = wParam; + m.lParam = lParam; + m.time = 0; + if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { GetMessage(&m, hwnd, 0, WM_USER); wParam = m.wParam; } else {