From: Michael Martin Date: Wed, 2 Jun 2010 23:58:28 +0000 (+0000) Subject: [crt] X-Git-Tag: backups/header-work@57446~11^2~106 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=f6d5918b3117afae456a4f4eb6d5e6bbd7a494c4 [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. svn path=/trunk/; revision=47527 --- diff --git a/reactos/lib/sdk/crt/string/mbstowcs_nt.c b/reactos/lib/sdk/crt/string/mbstowcs_nt.c index 8ab1edd23e3..4b613368c3e 100644 --- a/reactos/lib/sdk/crt/string/mbstowcs_nt.c +++ b/reactos/lib/sdk/crt/string/mbstowcs_nt.c @@ -47,7 +47,7 @@ size_t mbstowcs (wchar_t *wcstr, const char *mbstr, size_t count) } Status = RtlMultiByteToUnicodeN (wcstr, - count, + count * sizeof(WCHAR), &Size, mbstr, Length);