[ros-diffs] [hbirr] 18033: Set the MaximumLength of the returned
string in IntGetFullWindowStationName.
hbirr at svn.reactos.com
hbirr at svn.reactos.com
Sat Sep 24 21:17:16 CEST 2005
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)
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050924/c2fb07f3/attachment.html
More information about the Ros-diffs
mailing list