Set the MaximumLength of the returned string in IntGetFullWindowStationName.
authorHartmut Birr <osexpert@googlemail.com>
Sat, 24 Sep 2005 19:17:00 +0000 (19:17 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 24 Sep 2005 19:17:00 +0000 (19:17 +0000)
svn path=/trunk/; revision=18033

reactos/subsys/win32k/ntuser/winsta.c

index e8938d4..be08986 100644 (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)
    {