mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
[RTL]
- 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:
parent
ca9039c50e
commit
19e368a616
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue