kernel32: Don't test the invalid locale 0 if it is enumerated.

This commit is contained in:
James Hawkins 2008-05-23 03:10:46 -05:00 committed by Alexandre Julliard
parent a3b7030ee8
commit e92f9054dd

View file

@ -2056,6 +2056,10 @@ static BOOL CALLBACK lgrplocale_procA(LGRPID lgrpid, LCID lcid, LPSTR lpszNum,
{
trace("%08x, %08x, %s, %08lx\n", lgrpid, lcid, lpszNum, lParam);
/* invalid locale enumerated on some platforms */
if (lcid == 0)
return TRUE;
ok(pIsValidLanguageGroup(lgrpid, LGRPID_SUPPORTED) == TRUE,
"Enumerated grp %d not valid\n", lgrpid);
ok(IsValidLocale(lcid, LCID_SUPPORTED) == TRUE,