[WIN32K:NTUSER]

- Fix indentation. No code changes.

svn path=/trunk/; revision=71163
This commit is contained in:
Thomas Faber 2016-04-15 19:49:33 +00:00
parent d814167aba
commit 741f025e65

View file

@ -228,8 +228,7 @@ IntValidateWindowStationHandle(
return STATUS_INVALID_HANDLE; return STATUS_INVALID_HANDLE;
} }
Status = ObReferenceObjectByHandle( Status = ObReferenceObjectByHandle(WindowStation,
WindowStation,
DesiredAccess, DesiredAccess,
ExWindowStationObjectType, ExWindowStationObjectType,
AccessMode, AccessMode,
@ -405,8 +404,7 @@ NtUserCreateWindowStation(
TRACE("NtUserCreateWindowStation called\n"); TRACE("NtUserCreateWindowStation called\n");
Status = ObOpenObjectByName( Status = ObOpenObjectByName(ObjectAttributes,
ObjectAttributes,
ExWindowStationObjectType, ExWindowStationObjectType,
UserMode, UserMode,
NULL, NULL,
@ -444,8 +442,7 @@ NtUserCreateWindowStation(
} }
/* Create the window station object */ /* Create the window station object */
Status = ObCreateObject( Status = ObCreateObject(UserMode,
UserMode,
ExWindowStationObjectType, ExWindowStationObjectType,
ObjectAttributes, ObjectAttributes,
UserMode, UserMode,
@ -463,8 +460,7 @@ NtUserCreateWindowStation(
return 0; return 0;
} }
Status = ObInsertObject( Status = ObInsertObject((PVOID)WindowStationObject,
(PVOID)WindowStationObject,
NULL, NULL,
dwDesiredAccess, dwDesiredAccess,
0, 0,
@ -539,8 +535,7 @@ NtUserOpenWindowStation(
HWINSTA hwinsta; HWINSTA hwinsta;
NTSTATUS Status; NTSTATUS Status;
Status = ObOpenObjectByName( Status = ObOpenObjectByName(ObjectAttributes,
ObjectAttributes,
ExWindowStationObjectType, ExWindowStationObjectType,
UserMode, UserMode,
NULL, NULL,
@ -597,8 +592,7 @@ NtUserCloseWindowStation(
return FALSE; return FALSE;
} }
Status = IntValidateWindowStationHandle( Status = IntValidateWindowStationHandle(hWinSta,
hWinSta,
UserMode, UserMode,
0, 0,
&Object, &Object,
@ -693,8 +687,7 @@ NtUserGetObjectInformation(
/* try windowstation */ /* try windowstation */
TRACE("Trying to open window station %p\n", hObject); TRACE("Trying to open window station %p\n", hObject);
Status = ObReferenceObjectByHandle( Status = ObReferenceObjectByHandle(hObject,
hObject,
0, 0,
ExWindowStationObjectType, ExWindowStationObjectType,
UserMode, UserMode,
@ -706,8 +699,7 @@ NtUserGetObjectInformation(
/* try desktop */ /* try desktop */
TRACE("Trying to open desktop %p\n", hObject); TRACE("Trying to open desktop %p\n", hObject);
WinStaObject = NULL; WinStaObject = NULL;
Status = IntValidateDesktopHandle( Status = IntValidateDesktopHandle(hObject,
hObject,
UserMode, UserMode,
0, 0,
&DesktopObject); &DesktopObject);
@ -900,7 +892,7 @@ UserSetProcessWindowStation(HWINSTA hWindowStation)
/* Reference the new window station */ /* Reference the new window station */
if(hWindowStation !=NULL) if(hWindowStation !=NULL)
{ {
Status = IntValidateWindowStationHandle( hWindowStation, Status = IntValidateWindowStationHandle(hWindowStation,
UserMode, UserMode,
0, 0,
&NewWinSta, &NewWinSta,
@ -1015,8 +1007,7 @@ NtUserLockWindowStation(HWINSTA hWindowStation)
return FALSE; return FALSE;
} }
Status = IntValidateWindowStationHandle( Status = IntValidateWindowStationHandle(hWindowStation,
hWindowStation,
UserMode, UserMode,
0, 0,
&Object, &Object,
@ -1061,8 +1052,7 @@ NtUserUnlockWindowStation(HWINSTA hWindowStation)
return FALSE; return FALSE;
} }
Status = IntValidateWindowStationHandle( Status = IntValidateWindowStationHandle(hWindowStation,
hWindowStation,
UserMode, UserMode,
0, 0,
&Object, &Object,
@ -1100,15 +1090,13 @@ BuildWindowStationNameList(
/* /*
* Try to open the directory. * Try to open the directory.
*/ */
InitializeObjectAttributes( InitializeObjectAttributes(&ObjectAttributes,
&ObjectAttributes,
&gustrWindowStationsDir, &gustrWindowStationsDir,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL, NULL,
NULL); NULL);
Status = ZwOpenDirectoryObject( Status = ZwOpenDirectoryObject(&DirectoryHandle,
&DirectoryHandle,
DIRECTORY_QUERY, DIRECTORY_QUERY,
&ObjectAttributes); &ObjectAttributes);
@ -1120,8 +1108,13 @@ BuildWindowStationNameList(
/* First try to query the directory using a fixed-size buffer */ /* First try to query the directory using a fixed-size buffer */
Context = 0; Context = 0;
Buffer = NULL; Buffer = NULL;
Status = ZwQueryDirectoryObject(DirectoryHandle, InitialBuffer, sizeof(InitialBuffer), Status = ZwQueryDirectoryObject(DirectoryHandle,
FALSE, TRUE, &Context, &ReturnLength); InitialBuffer,
sizeof(InitialBuffer),
FALSE,
TRUE,
&Context,
&ReturnLength);
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))
{ {
if (STATUS_NO_MORE_ENTRIES == ZwQueryDirectoryObject(DirectoryHandle, NULL, 0, FALSE, if (STATUS_NO_MORE_ENTRIES == ZwQueryDirectoryObject(DirectoryHandle, NULL, 0, FALSE,
@ -1174,7 +1167,8 @@ BuildWindowStationNameList(
*/ */
ReturnLength = sizeof(DWORD); ReturnLength = sizeof(DWORD);
EntryCount = 0; EntryCount = 0;
for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer; 0 != DirEntry->Name.Length; for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer;
0 != DirEntry->Name.Length;
DirEntry++) DirEntry++)
{ {
ReturnLength += DirEntry->Name.Length + sizeof(WCHAR); ReturnLength += DirEntry->Name.Length + sizeof(WCHAR);
@ -1221,7 +1215,8 @@ BuildWindowStationNameList(
lpBuffer = (PVOID) ((PCHAR) lpBuffer + sizeof(DWORD)); lpBuffer = (PVOID) ((PCHAR) lpBuffer + sizeof(DWORD));
NullWchar = L'\0'; NullWchar = L'\0';
for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer; 0 != DirEntry->Name.Length; for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer;
0 != DirEntry->Name.Length;
DirEntry++) DirEntry++)
{ {
Status = MmCopyToCaller(lpBuffer, DirEntry->Name.Buffer, DirEntry->Name.Length); Status = MmCopyToCaller(lpBuffer, DirEntry->Name.Buffer, DirEntry->Name.Length);