Set the MaximumLength of the returned string in IntGetFullWindowStationName. Modified: trunk/reactos/subsys/win32k/ntuser/winsta.c _____
Modified: trunk/reactos/subsys/win32k/ntuser/winsta.c --- trunk/reactos/subsys/win32k/ntuser/winsta.c 2005-09-24 19:15:24 UTC (rev 18032) +++ trunk/reactos/subsys/win32k/ntuser/winsta.c 2005-09-24 19:17:00 UTC (rev 18033) @@ -259,6 +259,7 @@
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) {