mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +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;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
HANDLE DirectoryHandle;
|
HANDLE DirectoryHandle;
|
||||||
UNICODE_STRING DirectoryName;
|
UNICODE_STRING DirectoryName = RTL_CONSTANT_STRING(WINSTA_ROOT_NAME);
|
||||||
char InitialBuffer[256], *Buffer;
|
char InitialBuffer[256], *Buffer;
|
||||||
ULONG Context, ReturnLength, BufferSize;
|
ULONG Context, ReturnLength, BufferSize;
|
||||||
DWORD EntryCount;
|
DWORD EntryCount;
|
||||||
POBJECT_DIRECTORY_INFORMATION DirEntry;
|
POBJECT_DIRECTORY_INFORMATION DirEntry;
|
||||||
WCHAR NullWchar;
|
WCHAR NullWchar;
|
||||||
|
|
||||||
/*
|
|
||||||
* Generate name of window station directory
|
|
||||||
*/
|
|
||||||
if (!IntGetFullWindowStationName(&DirectoryName, NULL, NULL))
|
|
||||||
{
|
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to open the directory.
|
* Try to open the directory.
|
||||||
*/
|
*/
|
||||||
|
@ -1140,8 +1132,6 @@ BuildWindowStationNameList(
|
||||||
DIRECTORY_QUERY,
|
DIRECTORY_QUERY,
|
||||||
&ObjectAttributes);
|
&ObjectAttributes);
|
||||||
|
|
||||||
ExFreePool(DirectoryName.Buffer);
|
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue