Commit bda517c0 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

user32: Implement KLF_ACTIVATE flag in LoadKeyboardLayoutW.

parent 4bec69b1
...@@ -1540,7 +1540,16 @@ BOOL WINAPI UnregisterHotKey(HWND hwnd,INT id) ...@@ -1540,7 +1540,16 @@ BOOL WINAPI UnregisterHotKey(HWND hwnd,INT id)
*/ */
HKL WINAPI LoadKeyboardLayoutW( const WCHAR *name, UINT flags ) HKL WINAPI LoadKeyboardLayoutW( const WCHAR *name, UINT flags )
{ {
DWORD tmp;
HKL layout;
FIXME_(keyboard)( "name %s, flags %x, semi-stub!\n", debugstr_w( name ), flags ); FIXME_(keyboard)( "name %s, flags %x, semi-stub!\n", debugstr_w( name ), flags );
tmp = wcstoul( name, NULL, 16 );
layout = UlongToHandle( tmp );
if ((flags & KLF_ACTIVATE) && ActivateKeyboardLayout( layout, 0 )) return layout;
/* FIXME: semi-stub: returning default layout */ /* FIXME: semi-stub: returning default layout */
return get_locale_kbd_layout(); return get_locale_kbd_layout();
} }
......
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