[crt]
authorMichael Martin <michael.martin@reactos.org>
Wed, 2 Jun 2010 23:58:28 +0000 (23:58 +0000)
committerMichael Martin <michael.martin@reactos.org>
Wed, 2 Jun 2010 23:58:28 +0000 (23:58 +0000)
- 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.

svn path=/trunk/; revision=47527

reactos/lib/sdk/crt/string/mbstowcs_nt.c

index 8ab1edd..4b61336 100644 (file)
@@ -47,7 +47,7 @@ size_t mbstowcs (wchar_t *wcstr, const char *mbstr, size_t count)
        }
 
        Status = RtlMultiByteToUnicodeN (wcstr,
        }
 
        Status = RtlMultiByteToUnicodeN (wcstr,
-                                        count,
+                                        count * sizeof(WCHAR),
                                         &Size,
                                         mbstr,
                                         Length);
                                         &Size,
                                         mbstr,
                                         Length);