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

win32u: Allow LANG_INVARIANT in NtUserActivateKeyboardLayout.

parent d8e6a29d
......@@ -1207,7 +1207,8 @@ HKL WINAPI NtUserActivateKeyboardLayout( HKL layout, UINT flags )
return 0;
}
if (NtQueryDefaultLocale( TRUE, &locale ) || LOWORD(layout) != locale)
if (LOWORD(layout) != MAKELANGID(LANG_INVARIANT, SUBLANG_DEFAULT) &&
(NtQueryDefaultLocale( TRUE, &locale ) || LOWORD(layout) != locale))
{
RtlSetLastWin32Error( ERROR_CALL_NOT_IMPLEMENTED );
FIXME_(keyboard)( "Changing user locale is not supported\n" );
......
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