- Roel Messiant: Specify proper byte length of a unicode string. Fixes out of bounds access in actctx.c support code. No more half-cut active context stuff in debug logs.

svn path=/trunk/; revision=50031
This commit is contained in:
Aleksey Bragin 2010-12-15 20:03:43 +00:00
parent ca9039c50e
commit 19e368a616

View file

@ -239,7 +239,7 @@ static UNICODE_STRING xmlstr2unicode(const xmlstr_t *xmlstr)
UNICODE_STRING res;
res.Buffer = (PWSTR)xmlstr->ptr;
res.Length = res.MaximumLength = xmlstr->len;
res.Length = res.MaximumLength = xmlstr->len * sizeof(WCHAR);
return res;
}