kernel32: Silence repeated LocaleNameToLCID unsupported flags.

Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jarkko Korpi 2015-07-15 02:38:25 +03:00 committed by Alexandre Julliard
parent 1d82495ba1
commit dc5b22963b
1 changed files with 5 additions and 2 deletions

View File

@ -1396,8 +1396,10 @@ LANGID WINAPI GetSystemDefaultUILanguage(void)
LCID WINAPI LocaleNameToLCID( LPCWSTR name, DWORD flags ) LCID WINAPI LocaleNameToLCID( LPCWSTR name, DWORD flags )
{ {
struct locale_name locale_name; struct locale_name locale_name;
static int once;
if (flags) FIXME( "unsupported flags %x\n", flags ); if (flags && !once++)
FIXME( "unsupported flags %x\n", flags );
if (name == LOCALE_NAME_USER_DEFAULT) if (name == LOCALE_NAME_USER_DEFAULT)
return GetUserDefaultLCID(); return GetUserDefaultLCID();
@ -1427,7 +1429,8 @@ LCID WINAPI LocaleNameToLCID( LPCWSTR name, DWORD flags )
*/ */
INT WINAPI LCIDToLocaleName( LCID lcid, LPWSTR name, INT count, DWORD flags ) INT WINAPI LCIDToLocaleName( LCID lcid, LPWSTR name, INT count, DWORD flags )
{ {
if (flags) FIXME( "unsupported flags %x\n", flags ); static int once;
if (flags && !once++) FIXME( "unsupported flags %x\n", flags );
return GetLocaleInfoW( lcid, LOCALE_SNAME | LOCALE_NOUSEROVERRIDE, name, count ); return GetLocaleInfoW( lcid, LOCALE_SNAME | LOCALE_NOUSEROVERRIDE, name, count );
} }