Austin English austinenglish@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.