Author: gschneider
Date: Thu Dec 10 16:50:07 2009
New Revision: 44527
URL: 
http://svn.reactos.org/svn/reactos?rev=44527&view=rev
Log:
[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
Modified:
    trunk/reactos/dll/win32/kernel32/misc/lang.c
Modified: trunk/reactos/dll/win32/kernel32/misc/lang.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/la…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/lang.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/lang.c [iso-8859-1] Thu Dec 10 16:50:07 2009
@@ -923,6 +923,12 @@
     {
         SetLastError(ERROR_INVALID_PARAMETER);
         return FALSE;
+    }
+
+    /* Passing 0 flags behaves like LCID_SUPPORTED */
+    if (lpProcs->dwFlags == 0)
+    {
+        lpProcs->dwFlags = LCID_SUPPORTED;
     }
     switch (lpProcs->dwFlags)