mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS] Use KeClearEvent instead of KeResetEvent where the previous state is not needed.
This commit is contained in:
parent
4f8379a02b
commit
75850abcbb
3 changed files with 6 additions and 6 deletions
|
@ -1014,7 +1014,7 @@ HalpGetFullGeometry(IN PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
|
||||
/* Reset event */
|
||||
KeResetEvent(Event);
|
||||
KeClearEvent(Event);
|
||||
|
||||
/* Call the driver and check if it's pending */
|
||||
Status = IoCallDriver(DeviceObject, Irp);
|
||||
|
@ -1847,7 +1847,7 @@ xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject,
|
|||
do
|
||||
{
|
||||
/* Reset the event since we reuse it */
|
||||
KeResetEvent(&Event);
|
||||
KeClearEvent(&Event);
|
||||
|
||||
/* Build the read IRP */
|
||||
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_READ,
|
||||
|
@ -1912,7 +1912,7 @@ xHalIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject,
|
|||
PartitionDescriptor->PartitionType = (UCHAR)PartitionType;
|
||||
|
||||
/* Reset the reusable event */
|
||||
KeResetEvent(&Event);
|
||||
KeClearEvent(&Event);
|
||||
|
||||
/* Build the write IRP */
|
||||
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_WRITE,
|
||||
|
|
|
@ -833,7 +833,7 @@ RawQueryFsSizeInfo(IN PVCB Vcb,
|
|||
else
|
||||
{
|
||||
/* Setup query IRP */
|
||||
KeResetEvent(&Event);
|
||||
KeClearEvent(&Event);
|
||||
Irp = IoBuildDeviceIoControlRequest(IOCTL_DISK_GET_PARTITION_INFO,
|
||||
RealDevice,
|
||||
NULL,
|
||||
|
|
|
@ -608,7 +608,7 @@ NtReplyWaitReceivePortEx(IN HANDLE PortHandle,
|
|||
if (ReceivePort->Flags & LPCP_WAITABLE_PORT)
|
||||
{
|
||||
/* Reset its event */
|
||||
KeResetEvent(&ReceivePort->WaitEvent);
|
||||
KeClearEvent(&ReceivePort->WaitEvent);
|
||||
}
|
||||
|
||||
/* Release the lock and fail */
|
||||
|
@ -630,7 +630,7 @@ NtReplyWaitReceivePortEx(IN HANDLE PortHandle,
|
|||
if (ReceivePort->Flags & LPCP_WAITABLE_PORT)
|
||||
{
|
||||
/* Reset its event */
|
||||
KeResetEvent(&ReceivePort->WaitEvent);
|
||||
KeClearEvent(&ReceivePort->WaitEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue