From: havoc Date: Fri, 29 Feb 2008 10:37:26 +0000 (+0000) Subject: use a better cast on a parameter in a ToAscii call, might fix a warning, X-Git-Tag: xonotic-v0.1.0preview~2361 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7b85996a847b1dd078c99e1938eeb89d56848c2b;p=xonotic%2Fdarkplaces.git use a better cast on a parameter in a ToAscii call, might fix a warning, probably not git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8162 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 42be5559..74308040 100644 --- 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 ) {