/* DATA **********************************************************************/
-#define WsNqLock() EnterCriticalSection((LPCRITICAL_SECTION)&NsQuery->Lock);
-#define WsNqUnlock() LeaveCriticalSection((LPCRITICAL_SECTION)&NsQuery->Lock);
+#define WsNqLock() EnterCriticalSection(&NsQuery->Lock);
+#define WsNqUnlock() LeaveCriticalSection(&NsQuery->Lock);
/* FUNCTIONS *****************************************************************/
WsNqInitialize(IN PNSQUERY Query)
{
/* Initialize the lock */
- InitializeCriticalSection((LPCRITICAL_SECTION)&Query->Lock);
+ InitializeCriticalSection(&Query->Lock);
/* Set initial reference count and signature */
Query->RefCount = 1;
/* Remove the signature and delete the lock */
NsQuery->Signature = ~0xBEADFACE;
- DeleteCriticalSection((LPCRITICAL_SECTION)&NsQuery->Lock);
+ DeleteCriticalSection(&NsQuery->Lock);
/* Free us */
HeapFree(WsSockHeap, 0, NsQuery);