Hopefully fix a MultiByteToWideChar issue with UTF8.
authorMike Nordell <tamlin@algonet.se>
Wed, 10 Oct 2012 20:33:45 +0000 (20:33 +0000)
committerMike Nordell <tamlin@algonet.se>
Wed, 10 Oct 2012 20:33:45 +0000 (20:33 +0000)
svn path=/trunk/; revision=57530

reactos/dll/win32/kernel32/winnls/string/nls.c

index bcd8392..7a90818 100644 (file)
@@ -359,7 +359,7 @@ IntMultiByteToWideCharUTF8(DWORD Flags,
     WCHAR WideChar;
     LONG Count;
 
     WCHAR WideChar;
     LONG Count;
 
-    if (Flags != 0)
+    if (Flags != 0 && Flags != MB_ERR_INVALID_CHARS)
     {
         SetLastError(ERROR_INVALID_FLAGS);
         return 0;
     {
         SetLastError(ERROR_INVALID_FLAGS);
         return 0;