Author: fireball
Date: Mon Jul 28 13:38:11 2008
New Revision: 34914
URL:
http://svn.reactos.org/svn/reactos?rev=34914&view=rev
Log:
- Don't strictly check NTDDI_VERSION to WINXP or WS03, since in case of e.g.
NTDDI_WS03SP1 the define would work incorrectly (skipping a structure member).
Modified:
trunk/reactos/include/ndk/pstypes.h
Modified: trunk/reactos/include/ndk/pstypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/pstypes.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/pstypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/pstypes.h [iso-8859-1] Mon Jul 28 13:38:11 2008
@@ -1426,9 +1426,9 @@
ULONG PeakProcessMemoryUsed;
ULONG PeakJobMemoryUsed;
ULONG CurrentJobMemoryUsed;
-#if (NTDDI_VERSION == NTDDI_WINXP)
+#if (NTDDI_VERSION >= NTDDI_WINXP) && (NTDDI_VERSION < NTDDI_WS03)
FAST_MUTEX MemoryLimitsLock;
-#elif (NTDDI_VERSION == NTDDI_WS03)
+#elif (NTDDI_VERSION >= NTDDI_WS03) && (NTDDI_VERSION < NTDDI_LONGHORN)
KGUARDED_MUTEX MemoryLimitsLock;
#elif (NTDDI_VERSION >= NTDDI_LONGHORN)
EX_PUSH_LOCK MemoryLimitsLock;