Author: tfaber
Date: Fri Sep 13 12:46:32 2013
New Revision: 60078
URL:
http://svn.reactos.org/svn/reactos?rev=60078&view=rev
Log:
[NPFS_NEW]
- Use documented functions
Modified:
trunk/reactos/drivers/filesystems/npfs_new/secursup.c
trunk/reactos/drivers/filesystems/npfs_new/strucsup.c
trunk/reactos/drivers/filesystems/npfs_new/waitsup.c
Modified: trunk/reactos/drivers/filesystems/npfs_new/secursup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/secursup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/secursup.c [iso-8859-1] Fri Sep 13 12:46:32
2013
@@ -48,7 +48,7 @@
ClientToken = ClientContext->ClientToken;
if ((TokenType == TokenPrimary) || (ClientToken))
{
- ObfDereferenceObject(ClientToken);
+ ObDereferenceObject(ClientToken);
}
ExFreePool(ClientContext);
}
Modified: trunk/reactos/drivers/filesystems/npfs_new/strucsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/strucsup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/strucsup.c [iso-8859-1] Fri Sep 13 12:46:32
2013
@@ -56,7 +56,7 @@
{
if (!Buffer) return FALSE;
- ObfDereferenceObject(((PNP_EVENT_BUFFER)Buffer)->Event);
+ ObDereferenceObject(((PNP_EVENT_BUFFER)Buffer)->Event);
return RtlDeleteElementGenericTable(Table, Buffer);
}
Modified: trunk/reactos/drivers/filesystems/npfs_new/waitsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/waitsup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/waitsup.c [iso-8859-1] Fri Sep 13 12:46:32
2013
@@ -28,7 +28,7 @@
WaitQueue = (PNP_WAIT_QUEUE)Irp->Tail.Overlay.DriverContext[0];
- OldIrql = KfAcquireSpinLock(&WaitQueue->WaitLock);
+ KeAcquireSpinLock(&WaitQueue->WaitLock, &OldIrql);
WaitEntry = (PNP_WAIT_QUEUE_ENTRY)Irp->Tail.Overlay.DriverContext[1];
if (WaitEntry)
@@ -41,7 +41,7 @@
}
}
- KfReleaseSpinLock(&WaitQueue->WaitLock, OldIrql);
+ KeReleaseSpinLock(&WaitQueue->WaitLock, OldIrql);
if (WaitEntry)
{
@@ -65,7 +65,7 @@
KIRQL OldIrql;
PNP_WAIT_QUEUE_ENTRY WaitEntry = Context;
- OldIrql = KfAcquireSpinLock(&WaitEntry->WaitQueue->WaitLock);
+ KeAcquireSpinLock(&WaitEntry->WaitQueue->WaitLock, &OldIrql);
Irp = WaitEntry->Irp;
if (Irp)
@@ -79,7 +79,7 @@
}
}
- KfReleaseSpinLock(&WaitEntry->WaitQueue->WaitLock, OldIrql);
+ KeReleaseSpinLock(&WaitEntry->WaitQueue->WaitLock, OldIrql);
if (Irp)
{
@@ -125,7 +125,7 @@
RtlInitEmptyUnicodeString(&DestinationString, Buffer, PipeName->Length);
RtlUpcaseUnicodeString(&DestinationString, PipeName, FALSE);
- OldIrql = KfAcquireSpinLock(&WaitQueue->WaitLock);
+ KeAcquireSpinLock(&WaitQueue->WaitLock, &OldIrql);
for (NextEntry = WaitQueue->WaitList.Flink;
NextEntry != &WaitQueue->WaitList;
@@ -187,7 +187,7 @@
}
}
- KfReleaseSpinLock(&WaitQueue->WaitLock, OldIrql);
+ KeReleaseSpinLock(&WaitQueue->WaitLock, OldIrql);
ExFreePool(DestinationString.Buffer);
@@ -261,7 +261,7 @@
Irp->Tail.Overlay.DriverContext[0] = WaitQueue;
Irp->Tail.Overlay.DriverContext[1] = WaitEntry;
- OldIrql = KfAcquireSpinLock(&WaitQueue->WaitLock);
+ KeAcquireSpinLock(&WaitQueue->WaitLock, &OldIrql);
IoSetCancelRoutine(Irp, NpCancelWaitQueueIrp);
@@ -284,7 +284,7 @@
}
- KfReleaseSpinLock(&WaitQueue->WaitLock, OldIrql);
+ KeReleaseSpinLock(&WaitQueue->WaitLock, OldIrql);
if (WaitEntry) ExFreePool(WaitEntry);
return Status;