[kernel32]

- Passing 0 flags to EnumSystemLocales behaves like passing LCID_SUPPORTED, so be it
- Ref: http://msdn.microsoft.com/en-us/library/dd317828%28VS.85%29.aspx
- Fixes mlang winetest crash, now it hangs after executing some hundred tests, bug #4999

svn path=/trunk/; revision=44527
This commit is contained in:
Gregor Schneider 2009-12-10 15:50:07 +00:00
parent 3953b7855d
commit 8b437dd7b2

View file

@ -925,6 +925,12 @@ static BOOL NLS_EnumSystemLocales(ENUMSYSTEMLOCALES_CALLBACKS *lpProcs)
return FALSE; return FALSE;
} }
/* Passing 0 flags behaves like LCID_SUPPORTED */
if (lpProcs->dwFlags == 0)
{
lpProcs->dwFlags = LCID_SUPPORTED;
}
switch (lpProcs->dwFlags) switch (lpProcs->dwFlags)
{ {
case LCID_ALTERNATE_SORTS: case LCID_ALTERNATE_SORTS: