From 7b85996a847b1dd078c99e1938eeb89d56848c2b Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 29 Feb 2008 10:37:26 +0000 Subject: [PATCH] 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 --- vid_wgl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.39.2