Austin English : ndis.sys: Add NdisAllocateSpinLock stub.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 29 09:10:09 CST 2016


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

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Jan  5 17:24:12 2016 -0600

ndis.sys: Add NdisAllocateSpinLock stub.

Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ndis.sys/main.c        | 5 +++++
 dlls/ndis.sys/ndis.sys.spec | 2 +-
 include/ddk/ndis.h          | 7 +++++++
 3 files changed, 13 insertions(+), 1 deletion(-)

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/dlls/ndis.sys/ndis.sys.spec b/dlls/ndis.sys/ndis.sys.spec
index 1017296..31b421a 100644
--- a/dlls/ndis.sys/ndis.sys.spec
+++ b/dlls/ndis.sys/ndis.sys.spec
@@ -16,7 +16,7 @@
 @ stub NdisAllocatePacket
 @ stub NdisAllocatePacketPool
 @ stub NdisAllocatePacketPoolEx
-@ stub NdisAllocateSpinLock
+@ stdcall NdisAllocateSpinLock(ptr)
 @ stub NdisAnsiStringToUnicodeString
 @ stub NdisBufferLength
 @ stub NdisBufferVirtualAddress
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_ */




More information about the wine-cvs mailing list