Fixed compiling on Windows CE
authorSam Lantinga <slouken@libsdl.org>
Thu, 09 Aug 2001 05:51:34 +0000
changeset 1403c35d8f160bd
parent 139 ef23a1bf1244
child 141 218325a2653f
Fixed compiling on Windows CE
src/video/windib/SDL_dibevents.c
     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 {