mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
user32: Use the codepage associated with the input locale for WM_CHAR-type conversions.
This commit is contained in:
parent
bf85df3f0e
commit
5d5d0935ea
@ -586,7 +586,14 @@ static BOOL CALLBACK broadcast_message_callback( HWND hwnd, LPARAM lparam )
|
||||
|
||||
DWORD get_input_codepage( void )
|
||||
{
|
||||
return CP_ACP;
|
||||
DWORD cp;
|
||||
int ret;
|
||||
HKL hkl = GetKeyboardLayout( 0 );
|
||||
|
||||
ret = GetLocaleInfoW( LOWORD(hkl), LOCALE_IDEFAULTANSICODEPAGE | LOCALE_RETURN_NUMBER,
|
||||
(WCHAR *)&cp, sizeof(cp) / sizeof(WCHAR) );
|
||||
if (!ret) cp = CP_ACP;
|
||||
return cp;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user