[pkg-wine-party] [wine] 62/78: ndis.sys: Add NdisAllocateSpinLock stub.

Jens Reyer jreyer-guest at moszumanska.debian.org
Mon Aug 29 17:39:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

jreyer-guest pushed a commit to branch stretch
in repository wine.

commit 1ab6fbc2d6c242cea58630dd32a7c73c9f5807d6
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>
    (cherry picked from commit c9516970f93ae01f21a54894ceee3fd1b9d7f873)
    Signed-off-by: Michael Stefaniuc <mstefani 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_ */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list