src/video/windib/SDL_dibevents.c
changeset 140 3c35d8f160bd
parent 112 9ef74357a5fb
child 145 29a638dc26db
     1.1 --- a/src/video/windib/SDL_dibevents.c	Thu Aug 09 05:34:17 2001 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Thu Aug 09 05:51:34 2001 +0000
     1.3 @@ -90,14 +90,14 @@
     1.4  #ifdef NO_GETKEYBOARDSTATE
     1.5  			/* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */
     1.6  			if ( SDL_TranslateUNICODE ) {
     1.7 -				MSG msg;
     1.8 +				MSG m;
     1.9  
    1.10 -				msg.hwnd = hwnd;
    1.11 -				msg.message = msg;
    1.12 -				msg.wParam = wParam;
    1.13 -				msg.lParam = lParam;
    1.14 -				msg.time = 0;
    1.15 -				if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
    1.16 +				m.hwnd = hwnd;
    1.17 +				m.message = msg;
    1.18 +				m.wParam = wParam;
    1.19 +				m.lParam = lParam;
    1.20 +				m.time = 0;
    1.21 +				if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
    1.22  					GetMessage(&m, hwnd, 0, WM_USER);
    1.23  			    		wParam = m.wParam;
    1.24  				} else {