projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb531f
)
IoAdjustPagingPathCount is a macro.
author
Eric Kohl
<eric.kohl@reactos.org>
Fri, 22 Oct 2004 20:54:57 +0000
(20:54 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Fri, 22 Oct 2004 20:54:57 +0000
(20:54 +0000)
svn path=/trunk/; revision=11392
reactos/include/ddk/pnpfuncs.h
patch
|
blob
|
history
diff --git
a/reactos/include/ddk/pnpfuncs.h
b/reactos/include/ddk/pnpfuncs.h
index
73ae2c3
..
d5021b2
100644
(file)
--- 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