Author: mnordell
Date: Wed Oct 10 20:33:45 2012
New Revision: 57530
URL:
http://svn.reactos.org/svn/reactos?rev=57530&view=rev
Log:
Hopefully fix a MultiByteToWideChar issue with UTF8.
Modified:
trunk/reactos/dll/win32/kernel32/winnls/string/nls.c
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] Wed Oct 10 20:33:45
2012
@@ -359,7 +359,7 @@
WCHAR WideChar;
LONG Count;
- if (Flags != 0)
+ if (Flags != 0 && Flags != MB_ERR_INVALID_CHARS)
{
SetLastError(ERROR_INVALID_FLAGS);
return 0;