Author: cgutman
Date: Mon May 11 03:55:45 2009
New Revision: 40881
URL:
http://svn.reactos.org/svn/reactos?rev=40881&view=rev
Log:
- Don't cast NDIS_SPIN_LOCK directly to KSPIN_LOCK
Modified:
trunk/reactos/drivers/network/ndis/ndis/misc.c
Modified: trunk/reactos/drivers/network/ndis/ndis/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] Mon May 11 03:55:45 2009
@@ -17,7 +17,7 @@
IN ULONG Increment,
IN PNDIS_SPIN_LOCK SpinLock)
{
- ExInterlockedAddUlong ( Addend, Increment, (PKSPIN_LOCK)SpinLock );
+ ExInterlockedAddUlong ( Addend, Increment, &SpinLock->SpinLock );
}
@@ -32,7 +32,7 @@
IN PLIST_ENTRY ListEntry,
IN PNDIS_SPIN_LOCK SpinLock)
{
- return ExInterlockedInsertHeadList ( ListHead, ListEntry, (PKSPIN_LOCK)SpinLock );
+ return ExInterlockedInsertHeadList ( ListHead, ListEntry, &SpinLock->SpinLock
);
}
@@ -47,7 +47,7 @@
IN PLIST_ENTRY ListEntry,
IN PNDIS_SPIN_LOCK SpinLock)
{
- return ExInterlockedInsertTailList ( ListHead, ListEntry, (PKSPIN_LOCK)SpinLock );
+ return ExInterlockedInsertTailList ( ListHead, ListEntry, &SpinLock->SpinLock
);
}
@@ -61,7 +61,7 @@
IN PLIST_ENTRY ListHead,
IN PNDIS_SPIN_LOCK SpinLock)
{
- return ExInterlockedRemoveHeadList ( ListHead, (PKSPIN_LOCK)SpinLock );
+ return ExInterlockedRemoveHeadList ( ListHead, &SpinLock->SpinLock );
}
typedef struct _NDIS_HANDLE_OBJECT