[ros-diffs] [gadamopoulos] 51116: [win32k] - Simplify BuildWindowStationNameList a bit

gadamopoulos at svn.reactos.org gadamopoulos at svn.reactos.org
Tue Mar 22 09:59:36 UTC 2011


Author: gadamopoulos
Date: Tue Mar 22 09:59:36 2011
New Revision: 51116

URL: http://svn.reactos.org/svn/reactos?rev=51116&view=rev
Log:
[win32k]
- Simplify BuildWindowStationNameList a bit

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c?rev=51116&r1=51115&r2=51116&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] Tue Mar 22 09:59:36 2011
@@ -1110,20 +1110,12 @@
    OBJECT_ATTRIBUTES ObjectAttributes;
    NTSTATUS Status;
    HANDLE DirectoryHandle;
-   UNICODE_STRING DirectoryName;
+   UNICODE_STRING DirectoryName = RTL_CONSTANT_STRING(WINSTA_ROOT_NAME);
    char InitialBuffer[256], *Buffer;
    ULONG Context, ReturnLength, BufferSize;
    DWORD EntryCount;
    POBJECT_DIRECTORY_INFORMATION DirEntry;
    WCHAR NullWchar;
-
-   /*
-    * Generate name of window station directory
-    */
-   if (!IntGetFullWindowStationName(&DirectoryName, NULL, NULL))
-   {
-      return STATUS_INSUFFICIENT_RESOURCES;
-   }
 
    /*
     * Try to open the directory.
@@ -1139,8 +1131,6 @@
                &DirectoryHandle,
                DIRECTORY_QUERY,
                &ObjectAttributes);
-
-   ExFreePool(DirectoryName.Buffer);
 
    if (!NT_SUCCESS(Status))
    {




More information about the Ros-diffs mailing list