Zebediah Figura : include: Define some types before including ntddndis.h.

Alexandre Julliard julliard at winehq.org
Fri Jan 29 15:10:22 CST 2021


Module: wine
Branch: master
Commit: acd9c7085df997902b8157de7912459a8b3abfe7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=acd9c7085df997902b8157de7912459a8b3abfe7

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Jan 29 10:10:19 2021 -0600

include: Define some types before including ntddndis.h.

Note that Windows only defines some types before the include (specifically,
NDIS_STATUS, NDIS_HANDLE, NDIS_STRING).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50426
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/ddk/ndis.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ddk/ndis.h b/include/ddk/ndis.h
index 872b43b5824..6258bc13354 100644
--- a/include/ddk/ndis.h
+++ b/include/ddk/ndis.h
@@ -21,8 +21,6 @@
 #ifndef _NDIS_
 #define _NDIS_
 
-#include <ntddndis.h>
-
 typedef ULONG NDIS_AF, *PNDIS_AF;
 typedef MDL   NDIS_BUFFER, *PNDIS_BUFFER;
 typedef void *NDIS_HANDLE, **PNDIS_HANDLE, *PNDIS_PACKET_POOL;
@@ -30,6 +28,8 @@ typedef ULONG NDIS_OID, *PNDIS_OID;
 typedef int   NDIS_STATUS, *PNDIS_STATUS;
 typedef UNICODE_STRING NDIS_STRING, *PNDIS_STRING;
 
+#include <ntddndis.h>
+
 typedef enum _NDIS_REQUEST_TYPE
 {
     NdisRequestQueryInformation,




More information about the wine-cvs mailing list