[ros-diffs] [mjmartin] 47527: [crt] - mbstowcs: Fix incorrect size passed as the second parameter for call to RtlMultiByteToUnicodeN. Fixes loading assemblies when manifest is in a manifest file due to parsing failure.

mjmartin at svn.reactos.org mjmartin at svn.reactos.org
Thu Jun 3 01:58:29 CEST 2010


Author: mjmartin
Date: Thu Jun  3 01:58:28 2010
New Revision: 47527

URL: http://svn.reactos.org/svn/reactos?rev=47527&view=rev
Log:
[crt]
- mbstowcs: Fix incorrect size passed as the second parameter for call to RtlMultiByteToUnicodeN.
Fixes loading assemblies when manifest is in a manifest file due to parsing failure.

Modified:
    trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c

Modified: trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c?rev=47527&r1=47526&r2=47527&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c [iso-8859-1] Thu Jun  3 01:58:28 2010
@@ -47,7 +47,7 @@
 	}
 
 	Status = RtlMultiByteToUnicodeN (wcstr,
-	                                 count,
+	                                 count * sizeof(WCHAR),
 	                                 &Size,
 	                                 mbstr,
 	                                 Length);




More information about the Ros-diffs mailing list