mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[win32k]
- Simplify BuildWindowStationNameList a bit svn path=/trunk/; revision=51116
This commit is contained in:
parent
8cf95d1319
commit
4a05e4ef29
1 changed files with 1 additions and 11 deletions
|
@ -1110,21 +1110,13 @@ BuildWindowStationNameList(
|
|||
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.
|
||||
*/
|
||||
|
@ -1140,8 +1132,6 @@ BuildWindowStationNameList(
|
|||
DIRECTORY_QUERY,
|
||||
&ObjectAttributes);
|
||||
|
||||
ExFreePool(DirectoryName.Buffer);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue