Commit e92f9054 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent a3b7030e
...@@ -2056,6 +2056,10 @@ static BOOL CALLBACK lgrplocale_procA(LGRPID lgrpid, LCID lcid, LPSTR lpszNum, ...@@ -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); 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, ok(pIsValidLanguageGroup(lgrpid, LGRPID_SUPPORTED) == TRUE,
"Enumerated grp %d not valid\n", lgrpid); "Enumerated grp %d not valid\n", lgrpid);
ok(IsValidLocale(lcid, LCID_SUPPORTED) == TRUE, ok(IsValidLocale(lcid, LCID_SUPPORTED) == TRUE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment