aboutsummaryrefslogtreecommitdiff
path: root/tap-win32
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtap-win32/prototypes.h2
-rwxr-xr-xtap-win32/tapdrvr.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/tap-win32/prototypes.h b/tap-win32/prototypes.h
index 788670c..f7d09f6 100755
--- a/tap-win32/prototypes.h
+++ b/tap-win32/prototypes.h
@@ -187,7 +187,7 @@ VOID HookDispatchFunctions();
#if ENABLE_NONADMIN
-#if DDKVER < 5600
+#if DDKVER_MAJOR < 5600
/*
* Better solution for use on Vista DDK, but possibly not compatible with
* earlier DDKs:
diff --git a/tap-win32/tapdrvr.c b/tap-win32/tapdrvr.c
index 989b44c..ca02d13 100755
--- a/tap-win32/tapdrvr.c
+++ b/tap-win32/tapdrvr.c
@@ -40,8 +40,8 @@
//======================================================
#include "../../autodefs/defs.h"
-#ifndef DDKVER
-#error DDKVER must be defined to the DDK Version as in c:\WinDDK\[DDKVER]\...
+#ifndef DDKVER_MAJOR
+#error DDKVER_MAJOR must be defined as the major number of the DDK Version
#endif
#define NDIS_MINIPORT_DRIVER
@@ -70,7 +70,7 @@
//========================================================
#define ENABLE_NONADMIN 1
-#if DDKVER < 5600
+#if DDKVER_MAJOR < 5600
#include <ndis.h>
#include <ntstrsafe.h>
#include <ntddk.h>
@@ -419,7 +419,7 @@ NDIS_STATUS AdapterCreate
}
}
} else {
-#if DDKVER < 5600
+#if DDKVER_MAJOR < 5600
/* "MiniportName" is available only XP and above. Not on Windows 2000. */
NDIS_STRING key = NDIS_STRING_CONST("NdisVersion");
NdisReadConfiguration (&status, &parm, configHandle, &key, NdisParameterInteger);