]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
TAP driver fix for Vista x64 BSOD.
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 5 Mar 2007 20:44:08 +0000 (20:44 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 5 Mar 2007 20:44:08 +0000 (20:44 +0000)
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1754 e7ae566f-a301-0410-adde-c780ea21d3b5

tap-win32/SOURCES
tap-win32/amd64/OemWin2k.inf
tap-win32/i386/OemWin2k.inf
tap-win32/prototypes.h

index faddb0c6660e38412abde62d1931e0a555ea9515..f3d9ce5f122a910620130843c04499161da7c7e3 100755 (executable)
@@ -15,7 +15,7 @@ INCLUDES=$(DDK_INCLUDE_PATH)
 # config-win32.h
 C_DEFINES=
 C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MAJOR_VERSION=9
-C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MINOR_VERSION=1
+C_DEFINES=$(C_DEFINES) -DTAP_DRIVER_MINOR_VERSION=2
 
 # Use 00:FF:XX:XX:XX:XX format MAC addresses where
 # the Xs are random (like Linux tap driver).
index 2315fee118f13a02712514c87b3cb5537a6c3ea8..69f95c85589e5b56391a86a7c25e4680abcd74bb 100755 (executable)
@@ -51,7 +51,7 @@
 
 ; This version number should match the version
 ; number given in SOURCES.
-   DriverVer=02/27/2007,9.00.00.0001
+   DriverVer=03/05/2007,9.00.00.0002
 
 [Strings]
    DeviceDescription = "TAP-Win32 Adapter V9"
index c8316af5280ab492ef24a2232e9f7066e7291288..792cbb8cb5e166659b078b620c23ef6719c16165 100755 (executable)
@@ -51,7 +51,7 @@
 
 ; This version number should match the version
 ; number given in SOURCES.
-   DriverVer=02/27/2007,9.00.00.0001
+   DriverVer=03/05/2007,9.00.00.0002
 
 [Strings]
    DeviceDescription = "TAP-Win32 Adapter V9"
index 2237ed0bd64b5d510181fe026eacfad4385b9af5..55895c423e645f545be388e86703d1679f6c54d7 100755 (executable)
@@ -187,8 +187,25 @@ VOID HookDispatchFunctions();
 
 #if ENABLE_NONADMIN
 
+/*
+ * Better solution for use on Vista DDK, but possibly not compatible with
+ * earlier DDKs:
+ *
+ * Eliminate the definition of SECURITY_DESCRIPTOR (and even ZwSetSecurityObject),
+ * and at the top of tapdrv.c change:
+ *
+ * #include <ndis.h>
+ * #include <ntstrsafe.h>
+ * #include <ntddk.h>
+ *
+ * To
+ *
+ * #include <ntifs.h>
+ * #include <ndis.h>
+ * #include <ntstrsafe.h>
+ */
 typedef struct _SECURITY_DESCRIPTOR {
-  unsigned char opaque[20];
+  unsigned char opaque[64];
 } SECURITY_DESCRIPTOR;
 
 NTSYSAPI