mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
[WIN32K:NTUSER]
- Fix indentation. No code changes. svn path=/trunk/; revision=71163
This commit is contained in:
parent
d814167aba
commit
741f025e65
1 changed files with 807 additions and 812 deletions
|
@ -228,8 +228,7 @@ IntValidateWindowStationHandle(
|
|||
return STATUS_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
Status = ObReferenceObjectByHandle(
|
||||
WindowStation,
|
||||
Status = ObReferenceObjectByHandle(WindowStation,
|
||||
DesiredAccess,
|
||||
ExWindowStationObjectType,
|
||||
AccessMode,
|
||||
|
@ -405,8 +404,7 @@ NtUserCreateWindowStation(
|
|||
|
||||
TRACE("NtUserCreateWindowStation called\n");
|
||||
|
||||
Status = ObOpenObjectByName(
|
||||
ObjectAttributes,
|
||||
Status = ObOpenObjectByName(ObjectAttributes,
|
||||
ExWindowStationObjectType,
|
||||
UserMode,
|
||||
NULL,
|
||||
|
@ -444,8 +442,7 @@ NtUserCreateWindowStation(
|
|||
}
|
||||
|
||||
/* Create the window station object */
|
||||
Status = ObCreateObject(
|
||||
UserMode,
|
||||
Status = ObCreateObject(UserMode,
|
||||
ExWindowStationObjectType,
|
||||
ObjectAttributes,
|
||||
UserMode,
|
||||
|
@ -463,8 +460,7 @@ NtUserCreateWindowStation(
|
|||
return 0;
|
||||
}
|
||||
|
||||
Status = ObInsertObject(
|
||||
(PVOID)WindowStationObject,
|
||||
Status = ObInsertObject((PVOID)WindowStationObject,
|
||||
NULL,
|
||||
dwDesiredAccess,
|
||||
0,
|
||||
|
@ -539,8 +535,7 @@ NtUserOpenWindowStation(
|
|||
HWINSTA hwinsta;
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = ObOpenObjectByName(
|
||||
ObjectAttributes,
|
||||
Status = ObOpenObjectByName(ObjectAttributes,
|
||||
ExWindowStationObjectType,
|
||||
UserMode,
|
||||
NULL,
|
||||
|
@ -597,8 +592,7 @@ NtUserCloseWindowStation(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
Status = IntValidateWindowStationHandle(
|
||||
hWinSta,
|
||||
Status = IntValidateWindowStationHandle(hWinSta,
|
||||
UserMode,
|
||||
0,
|
||||
&Object,
|
||||
|
@ -693,8 +687,7 @@ NtUserGetObjectInformation(
|
|||
|
||||
/* try windowstation */
|
||||
TRACE("Trying to open window station %p\n", hObject);
|
||||
Status = ObReferenceObjectByHandle(
|
||||
hObject,
|
||||
Status = ObReferenceObjectByHandle(hObject,
|
||||
0,
|
||||
ExWindowStationObjectType,
|
||||
UserMode,
|
||||
|
@ -706,8 +699,7 @@ NtUserGetObjectInformation(
|
|||
/* try desktop */
|
||||
TRACE("Trying to open desktop %p\n", hObject);
|
||||
WinStaObject = NULL;
|
||||
Status = IntValidateDesktopHandle(
|
||||
hObject,
|
||||
Status = IntValidateDesktopHandle(hObject,
|
||||
UserMode,
|
||||
0,
|
||||
&DesktopObject);
|
||||
|
@ -900,7 +892,7 @@ UserSetProcessWindowStation(HWINSTA hWindowStation)
|
|||
/* Reference the new window station */
|
||||
if(hWindowStation !=NULL)
|
||||
{
|
||||
Status = IntValidateWindowStationHandle( hWindowStation,
|
||||
Status = IntValidateWindowStationHandle(hWindowStation,
|
||||
UserMode,
|
||||
0,
|
||||
&NewWinSta,
|
||||
|
@ -1015,8 +1007,7 @@ NtUserLockWindowStation(HWINSTA hWindowStation)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
Status = IntValidateWindowStationHandle(
|
||||
hWindowStation,
|
||||
Status = IntValidateWindowStationHandle(hWindowStation,
|
||||
UserMode,
|
||||
0,
|
||||
&Object,
|
||||
|
@ -1061,8 +1052,7 @@ NtUserUnlockWindowStation(HWINSTA hWindowStation)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
Status = IntValidateWindowStationHandle(
|
||||
hWindowStation,
|
||||
Status = IntValidateWindowStationHandle(hWindowStation,
|
||||
UserMode,
|
||||
0,
|
||||
&Object,
|
||||
|
@ -1100,15 +1090,13 @@ BuildWindowStationNameList(
|
|||
/*
|
||||
* Try to open the directory.
|
||||
*/
|
||||
InitializeObjectAttributes(
|
||||
&ObjectAttributes,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&gustrWindowStationsDir,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
Status = ZwOpenDirectoryObject(
|
||||
&DirectoryHandle,
|
||||
Status = ZwOpenDirectoryObject(&DirectoryHandle,
|
||||
DIRECTORY_QUERY,
|
||||
&ObjectAttributes);
|
||||
|
||||
|
@ -1120,8 +1108,13 @@ BuildWindowStationNameList(
|
|||
/* First try to query the directory using a fixed-size buffer */
|
||||
Context = 0;
|
||||
Buffer = NULL;
|
||||
Status = ZwQueryDirectoryObject(DirectoryHandle, InitialBuffer, sizeof(InitialBuffer),
|
||||
FALSE, TRUE, &Context, &ReturnLength);
|
||||
Status = ZwQueryDirectoryObject(DirectoryHandle,
|
||||
InitialBuffer,
|
||||
sizeof(InitialBuffer),
|
||||
FALSE,
|
||||
TRUE,
|
||||
&Context,
|
||||
&ReturnLength);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
if (STATUS_NO_MORE_ENTRIES == ZwQueryDirectoryObject(DirectoryHandle, NULL, 0, FALSE,
|
||||
|
@ -1174,7 +1167,8 @@ BuildWindowStationNameList(
|
|||
*/
|
||||
ReturnLength = sizeof(DWORD);
|
||||
EntryCount = 0;
|
||||
for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer; 0 != DirEntry->Name.Length;
|
||||
for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer;
|
||||
0 != DirEntry->Name.Length;
|
||||
DirEntry++)
|
||||
{
|
||||
ReturnLength += DirEntry->Name.Length + sizeof(WCHAR);
|
||||
|
@ -1221,7 +1215,8 @@ BuildWindowStationNameList(
|
|||
lpBuffer = (PVOID) ((PCHAR) lpBuffer + sizeof(DWORD));
|
||||
|
||||
NullWchar = L'\0';
|
||||
for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer; 0 != DirEntry->Name.Length;
|
||||
for (DirEntry = (POBJECT_DIRECTORY_INFORMATION) Buffer;
|
||||
0 != DirEntry->Name.Length;
|
||||
DirEntry++)
|
||||
{
|
||||
Status = MmCopyToCaller(lpBuffer, DirEntry->Name.Buffer, DirEntry->Name.Length);
|
||||
|
|
Loading…
Reference in a new issue