[NTOS:PO]: Whitespace fixes only!

svn path=/trunk/; revision=70535
This commit is contained in:
Hermès Bélusca-Maïto 2016-01-07 20:00:05 +00:00
parent d5691eba70
commit 63025d14ef
2 changed files with 199 additions and 207 deletions

View file

@ -94,8 +94,7 @@ PopGetSysButtonCompletion(
ExFreePoolWithTag(SysButtonContext, 'IWOP'); ExFreePoolWithTag(SysButtonContext, 'IWOP');
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
IoQueueWorkItem( IoQueueWorkItem(SysButtonContext->WorkItem,
SysButtonContext->WorkItem,
PopGetSysButton, PopGetSysButton,
DelayedWorkQueue, DelayedWorkQueue,
SysButtonContext); SysButtonContext);
@ -115,8 +114,7 @@ PopGetSysButton(
/* Get button pressed (IOCTL_GET_SYS_BUTTON_EVENT) */ /* Get button pressed (IOCTL_GET_SYS_BUTTON_EVENT) */
KeInitializeEvent(&SysButtonContext->Event, NotificationEvent, FALSE); KeInitializeEvent(&SysButtonContext->Event, NotificationEvent, FALSE);
Irp = IoBuildDeviceIoControlRequest( Irp = IoBuildDeviceIoControlRequest(IOCTL_GET_SYS_BUTTON_EVENT,
IOCTL_GET_SYS_BUTTON_EVENT,
DeviceObject, DeviceObject,
NULL, NULL,
0, 0,
@ -127,8 +125,7 @@ PopGetSysButton(
&SysButtonContext->IoStatusBlock); &SysButtonContext->IoStatusBlock);
if (Irp) if (Irp)
{ {
IoSetCompletionRoutine( IoSetCompletionRoutine(Irp,
Irp,
PopGetSysButtonCompletion, PopGetSysButtonCompletion,
SysButtonContext, SysButtonContext,
TRUE, TRUE,
@ -183,14 +180,12 @@ PopAddRemoveSysCapsCallback(IN PVOID NotificationStructure,
DPRINT("Arrival of %wZ\n", Notification->SymbolicLinkName); DPRINT("Arrival of %wZ\n", Notification->SymbolicLinkName);
/* Open the device */ /* Open the device */
InitializeObjectAttributes( InitializeObjectAttributes(&ObjectAttributes,
&ObjectAttributes,
Notification->SymbolicLinkName, Notification->SymbolicLinkName,
OBJ_KERNEL_HANDLE, OBJ_KERNEL_HANDLE,
NULL, NULL,
NULL); NULL);
Status = ZwOpenFile( Status = ZwOpenFile(&FileHandle,
&FileHandle,
FILE_READ_DATA, FILE_READ_DATA,
&ObjectAttributes, &ObjectAttributes,
&IoStatusBlock, &IoStatusBlock,
@ -201,8 +196,7 @@ PopAddRemoveSysCapsCallback(IN PVOID NotificationStructure,
DPRINT1("ZwOpenFile() failed with status 0x%08lx\n", Status); DPRINT1("ZwOpenFile() failed with status 0x%08lx\n", Status);
return Status; return Status;
} }
Status = ObReferenceObjectByHandle( Status = ObReferenceObjectByHandle(FileHandle,
FileHandle,
FILE_READ_DATA, FILE_READ_DATA,
IoFileObjectType, IoFileObjectType,
KernelMode, KernelMode,
@ -219,8 +213,7 @@ PopAddRemoveSysCapsCallback(IN PVOID NotificationStructure,
/* Get capabilities (IOCTL_GET_SYS_BUTTON_CAPS) */ /* Get capabilities (IOCTL_GET_SYS_BUTTON_CAPS) */
KeInitializeEvent(&Event, NotificationEvent, FALSE); KeInitializeEvent(&Event, NotificationEvent, FALSE);
Irp = IoBuildDeviceIoControlRequest( Irp = IoBuildDeviceIoControlRequest(IOCTL_GET_SYS_BUTTON_CAPS,
IOCTL_GET_SYS_BUTTON_CAPS,
DeviceObject, DeviceObject,
NULL, NULL,
0, 0,
@ -278,8 +271,7 @@ PopAddRemoveSysCapsCallback(IN PVOID NotificationStructure,
ExFreePoolWithTag(SysButtonContext, 'IWOP'); ExFreePoolWithTag(SysButtonContext, 'IWOP');
return STATUS_INSUFFICIENT_RESOURCES; return STATUS_INSUFFICIENT_RESOURCES;
} }
IoQueueWorkItem( IoQueueWorkItem(SysButtonContext->WorkItem,
SysButtonContext->WorkItem,
PopGetSysButton, PopGetSysButton,
DelayedWorkQueue, DelayedWorkQueue,
SysButtonContext); SysButtonContext);

View file

@ -622,7 +622,7 @@ PoUnregisterSystemState(IN PVOID StateHandle)
*/ */
NTSTATUS NTSTATUS
NTAPI NTAPI
NtInitiatePowerAction (IN POWER_ACTION SystemAction, NtInitiatePowerAction(IN POWER_ACTION SystemAction,
IN SYSTEM_POWER_STATE MinSystemState, IN SYSTEM_POWER_STATE MinSystemState,
IN ULONG Flags, IN ULONG Flags,
IN BOOLEAN Asynchronous) IN BOOLEAN Asynchronous)