ndis.sys: Add NdisAllocateSpinLock stub.

Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Austin English 2016-01-05 17:24:12 -06:00 committed by Alexandre Julliard
parent 9fb780ec08
commit c9516970f9
3 changed files with 13 additions and 1 deletions

View File

@ -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);
}

View File

@ -16,7 +16,7 @@
@ stub NdisAllocatePacket
@ stub NdisAllocatePacketPool
@ stub NdisAllocatePacketPoolEx
@ stub NdisAllocateSpinLock
@ stdcall NdisAllocateSpinLock(ptr)
@ stub NdisAnsiStringToUnicodeString
@ stub NdisBufferLength
@ stub NdisBufferVirtualAddress

View File

@ -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_ */