]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use a better cast on a parameter in a ToAscii call, might fix a warning,
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Feb 2008 10:37:26 +0000 (10:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Feb 2008 10:37:26 +0000 (10:37 +0000)
probably not

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8162 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index 42be555945dc6a047d10def356e94fc2296cdd33..74308040dbebd717b545107fc5e2fbd59367fb95 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -527,7 +527,7 @@ LONG WINAPI MainWndProc (HWND hWnd, UINT uMsg, WPARAM  wParam, LPARAM lParam)
                        GetKeyboardState (state);
                        // alt/ctrl/shift tend to produce funky ToAscii values,
                        // and if it's not a single character we don't know care about it
-                       charlength = ToAscii (wParam, lParam >> 16, state, (unsigned short *)asciichar, 0);
+                       charlength = ToAscii (wParam, lParam >> 16, state, (LPWORD)asciichar, 0);
                        if (vkey == K_ALT || vkey == K_CTRL || vkey == K_SHIFT || charlength == 0)
                                asciichar[0] = 0;
                        else if( charlength == 2 ) {