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

View file

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