Re: kernel32: implement IsValidLocaleName (as a wrapper around IsValidLocale) (2/2) (try 2)
10 Jul
2012
10 Jul
'12
4:12 p.m.
Austin English <austinenglish(a)gmail.com> writes:
@@ -2202,6 +2202,19 @@ BOOL WINAPI IsValidLocale( LCID lcid, DWORD flags ) (LPCWSTR)LOCALE_ILANGUAGE, LANGIDFROMLCID(lcid)) != 0; }
+/****************************************************************************** + * IsValidLocaleName (KERNEL32.@) + * + * See IsValidLocale(). + */ +BOOL WINAPI IsValidLocaleName( LPCWSTR locale ) +{ + LCID lcid; + + TRACE( "(%s)\n", debugstr_w(locale) ); + lcid = LocaleNameToLCID( locale, 0 ); + return IsValidLocale( lcid, 0 ); +}
That's probably not going to do the right thing for invalid names. Some tests would be a good idea. -- Alexandre Julliard julliard(a)winehq.org
4909
Age (days ago)
4909
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard