From: Austin English <austinenglish@gmail.com>
Subject: ndis.sys: add NdisAllocateSpinLock stub
Message-Id: <CACC5Q1fOuv8KryE2DBGmL6Up7tA8S0dewSehZ6X6_ChznWEC3A@mail.gmail.com>
Date: Tue, 5 Jan 2016 20:15:39 -0600

Fixes https://bugs.winehq.org/show_bug.cgi?id=39933

This is the last unimplemented function called by iNode (during
startup, at least, didn't test beyond that).

-- 
-Austin

From 5450fedec076c6d2f2c10c2e5cfa8f79578803a0 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Tue, 5 Jan 2016 17:24:12 -0600
Subject: [PATCH] ndis.sys: add NdisAllocateSpinLock stub

Signed-off-by: Austin English <austinenglish@gmail.com>
---
 dlls/ndis.sys/main.c | 5 +++++
 include/ddk/ndis.h   | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/dlls/ndis.sys/main.c b/dlls/ndis.sys/main.c
index b2c1da4..499f167 100644
--- a/dlls/ndis.sys/main.c
+++ b/dlls/ndis.sys/main.c
@@ -43,3 +43,8 @@ NDIS_STATUS WINAPI NdisAllocateMemoryWithTag(void **address, UINT length, ULONG
     FIXME("(%p, %u, %u): stub\n", address, length, tag);
     return NDIS_STATUS_FAILURE;
 }
+
+void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *lock)
+{
+    FIXME("(%p): stub\n", lock);
+}
diff --git a/include/ddk/ndis.h b/include/ddk/ndis.h
index a57d9f8..aa77d9a 100644
--- a/include/ddk/ndis.h
+++ b/include/ddk/ndis.h
@@ -23,8 +23,15 @@
 typedef void *NDIS_HANDLE, *PNDIS_HANDLE;
 typedef int   NDIS_STATUS, *PNDIS_STATUS;
 
+typedef struct _NDIS_SPIN_LOCK
+{
+  KSPIN_LOCK SpinLock;
+  KIRQL      OldIrql;
+} NDIS_SPIN_LOCK, *PNDIS_SPIN_LOCK;
+
 #define NDIS_STATUS_FAILURE                                ((NDIS_STATUS) STATUS_UNSUCCESSFUL)
 
 NDIS_STATUS WINAPI NdisAllocateMemoryWithTag(void **, UINT, ULONG);
+void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *);
 
 #endif /* _NDIS_ */

-- 
2.6.4