[rtl]
authorMichael Martin <michael.martin@reactos.org>
Sun, 6 Jun 2010 07:21:53 +0000 (07:21 +0000)
committerMichael Martin <michael.martin@reactos.org>
Sun, 6 Jun 2010 07:21:53 +0000 (07:21 +0000)
- 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

index 9ad67e0..40883a8 100644 (file)
@@ -1603,8 +1603,8 @@ static NTSTATUS parse_manifest( struct actctx_loader* acl, struct assembly_ident
 
         mbstowcs( new_buff, buffer, size);
         xmlbuf.ptr = new_buff;
 
         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 );
         status = parse_manifest_buffer( acl, assembly, ai, &xmlbuf );
 
         RtlFreeHeap( RtlGetProcessHeap(), 0, new_buff );