[PATCH 2/2] include: Define some types before including ntddndis.h.

Zebediah Figura z.figura12 at gmail.com
Fri Jan 29 10:10:19 CST 2021


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>
---
 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,
-- 
2.30.0




More information about the wine-devel mailing list