From 5e130771e7ef49df64d96416a7cff5c2a0eb325c Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Sun, 6 Jun 2010 07:21:53 +0000 Subject: [PATCH] [rtl] - Fix a overlooked change needed due to mbstowcs fix. Use the number of WCHARs vice number of bytes to calculate end of xmlbuf. svn path=/trunk/; revision=47613 --- reactos/lib/rtl/actctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/actctx.c b/reactos/lib/rtl/actctx.c index 9ad67e053fd..40883a8ff22 100644 --- a/reactos/lib/rtl/actctx.c +++ b/reactos/lib/rtl/actctx.c @@ -1603,8 +1603,8 @@ static NTSTATUS parse_manifest( struct actctx_loader* acl, struct assembly_ident mbstowcs( new_buff, buffer, size); xmlbuf.ptr = new_buff; - DPRINT("Buffer %S\n", new_buff); - xmlbuf.end = xmlbuf.ptr + len; + + xmlbuf.end = xmlbuf.ptr + len / sizeof(WCHAR); status = parse_manifest_buffer( acl, assembly, ai, &xmlbuf ); RtlFreeHeap( RtlGetProcessHeap(), 0, new_buff ); -- 2.17.1