mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:35:53 +00:00
[NTOS:PO]: Whitespace fixes only!
svn path=/trunk/; revision=70535
This commit is contained in:
parent
d5691eba70
commit
63025d14ef
2 changed files with 199 additions and 207 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue