From 92239abf049c4c1e2af59983737bd6334d9c84c5 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Fri, 22 Oct 2004 20:54:57 +0000 Subject: [PATCH] IoAdjustPagingPathCount is a macro. svn path=/trunk/; revision=11392 --- reactos/include/ddk/pnpfuncs.h | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/reactos/include/ddk/pnpfuncs.h b/reactos/include/ddk/pnpfuncs.h index 73ae2c367f7..d5021b21299 100644 --- a/reactos/include/ddk/pnpfuncs.h +++ b/reactos/include/ddk/pnpfuncs.h @@ -45,11 +45,24 @@ IoReleaseRemoveLockAndWaitEx( IN PVOID Tag, IN ULONG RemlockSize); -VOID -STDCALL -IoAdjustPagingPathCount( - IN PLONG Count, - IN BOOLEAN Increment); +/* + * VOID + * STDCALL + * IoAdjustPagingPathCount( + * IN PLONG Count, + * IN BOOLEAN Increment); + */ +#define IoAdjustPagingPathCount(Count, Paging) \ +{ \ + if (Paging) \ + { \ + InterlockedIncrement(Count); \ + } \ + else \ + { \ + InterlockedDecrement(Count); \ + } \ +} NTSTATUS STDCALL -- 2.17.1