Set the MaximumLength of the returned string in IntGetFullWindowStationName.

svn path=/trunk/; revision=18033
This commit is contained in:
Hartmut Birr 2005-09-24 19:17:00 +00:00
parent 13355b8eff
commit 58cb9dc1d9

View file

@ -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)
{