From: Hartmut Birr Date: Sat, 24 Sep 2005 19:17:00 +0000 (+0000) Subject: Set the MaximumLength of the returned string in IntGetFullWindowStationName. X-Git-Tag: ReactOS-0.2.8~388 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=58cb9dc1d97bd84a0f26a22c1611612ceca8aafb Set the MaximumLength of the returned string in IntGetFullWindowStationName. svn path=/trunk/; revision=18033 --- diff --git a/reactos/subsys/win32k/ntuser/winsta.c b/reactos/subsys/win32k/ntuser/winsta.c index e8938d488e9..be08986c147 100644 --- a/reactos/subsys/win32k/ntuser/winsta.c +++ b/reactos/subsys/win32k/ntuser/winsta.c @@ -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) {