mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
Set the MaximumLength of the returned string in IntGetFullWindowStationName.
svn path=/trunk/; revision=18033
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user