mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WINESYNC] kernel32: Improved GetUserPreferredUILanguages stub.
Implementation and tests are based on GetSystemPreferredUILanguages. Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 26d0105cd8a8ce1131033f1871de0dd9a7b4c43c by Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
parent
6f4d2924f0
commit
a3102dc0dd
1 changed files with 28 additions and 9 deletions
|
@ -1310,6 +1310,34 @@ BOOL WINAPI GetThreadPreferredUILanguages( DWORD flags, ULONG *count, WCHAR *buf
|
||||||
FIXME( "%08x, %p, %p %p\n", flags, count, buf, size );
|
FIXME( "%08x, %p, %p %p\n", flags, count, buf, size );
|
||||||
return get_dummy_preferred_ui_language( flags, count, buf, size );
|
return get_dummy_preferred_ui_language( flags, count, buf, size );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (WINVER >= 0x0600)
|
||||||
|
/******************************************************************************
|
||||||
|
* GetUserPreferredUILanguages (KERNEL32.@)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI GetUserPreferredUILanguages( DWORD flags, ULONG *count, WCHAR *buffer, ULONG *size )
|
||||||
|
{
|
||||||
|
TRACE( "%u %p %p %p\n", flags, count, buffer, size );
|
||||||
|
|
||||||
|
if (flags & ~(MUI_LANGUAGE_NAME | MUI_LANGUAGE_ID))
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if ((flags & MUI_LANGUAGE_NAME) && (flags & MUI_LANGUAGE_ID))
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (*size && !buffer)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return get_dummy_preferred_ui_language( flags, count, buffer, size );
|
||||||
|
}
|
||||||
|
#endif // (WINVER >= 0x0600)
|
||||||
#endif // !__REACTOS__
|
#endif // !__REACTOS__
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -6151,15 +6179,6 @@ INT WINAPI IdnToUnicode(DWORD dwFlags, LPCWSTR lpASCIICharStr, INT cchASCIIChar,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
|
||||||
* GetUserPreferredUILanguages (KERNEL32.@)
|
|
||||||
*/
|
|
||||||
BOOL WINAPI GetUserPreferredUILanguages(DWORD flags, PULONG numlangs, PZZWSTR langbuffer, PULONG bufferlen)
|
|
||||||
{
|
|
||||||
FIXME( "stub: %u %p %p %p\n", flags, numlangs, langbuffer, bufferlen );
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* GetFileMUIPath (KERNEL32.@)
|
* GetFileMUIPath (KERNEL32.@)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue