From 58cb9dc1d97bd84a0f26a22c1611612ceca8aafb Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sat, 24 Sep 2005 19:17:00 +0000 Subject: [PATCH] Set the MaximumLength of the returned string in IntGetFullWindowStationName. svn path=/trunk/; revision=18033 --- reactos/subsys/win32k/ntuser/winsta.c | 1 + 1 file changed, 1 insertion(+) 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) {