mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
- RtlCreateUnicodeString fails if the Length is > 0xFFFE on Windows NT 5.2 and higher. Spotted by Thomas.
svn path=/trunk/; revision=18944
This commit is contained in:
parent
baee1b54eb
commit
524dd664c3
|
@ -1943,6 +1943,8 @@ RtlCreateUnicodeString(
|
|||
PAGED_CODE_RTL();
|
||||
|
||||
Length = (wcslen(Source) + 1) * sizeof(WCHAR);
|
||||
if (Length > 0xFFFE) return FALSE;
|
||||
|
||||
UniDest->Buffer = RtlpAllocateStringMemory(Length, TAG_USTR);
|
||||
|
||||
if (UniDest->Buffer == NULL) return FALSE;
|
||||
|
|
Loading…
Reference in a new issue