Commit 6559d104 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Fix sign extension problem in map_wparam_WtoA.

parent 7f9b0906
...@@ -366,7 +366,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam ) ...@@ -366,7 +366,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam )
WCHAR wch = LOWORD(wparam); WCHAR wch = LOWORD(wparam);
char ch; char ch;
WideCharToMultiByte( CP_ACP, 0, &wch, 1, &ch, 1, NULL, NULL ); WideCharToMultiByte( CP_ACP, 0, &wch, 1, &ch, 1, NULL, NULL );
wparam = MAKEWPARAM( ch, HIWORD(wparam) ); wparam = MAKEWPARAM( (unsigned char)ch, HIWORD(wparam) );
} }
return wparam; return wparam;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment