mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Set the MaximumLength of the returned string in IntGetFullWindowStationName.
svn path=/trunk/; revision=18033
This commit is contained in:
parent
13355b8eff
commit
58cb9dc1d9
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ IntGetFullWindowStationName(
|
|||
FullName->Length += WinStaName->Length + sizeof(WCHAR);
|
||||
if (DesktopName != NULL)
|
||||
FullName->Length += DesktopName->Length + sizeof(WCHAR);
|
||||
FullName->MaximumLength = FullName->Length;
|
||||
FullName->Buffer = ExAllocatePoolWithTag(PagedPool, FullName->Length, TAG_STRING);
|
||||
if (FullName->Buffer == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue