Fix sign extension problem in map_wparam_WtoA.

This commit is contained in:
Gerard Patel 2001-10-05 19:42:24 +00:00 committed by Alexandre Julliard
parent 7f9b0906dd
commit 6559d10489
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ static WPARAM map_wparam_WtoA( UINT message, WPARAM wparam )
WCHAR wch = LOWORD(wparam);
char ch;
WideCharToMultiByte( CP_ACP, 0, &wch, 1, &ch, 1, NULL, NULL );
wparam = MAKEWPARAM( ch, HIWORD(wparam) );
wparam = MAKEWPARAM( (unsigned char)ch, HIWORD(wparam) );
}
return wparam;
}