/* DATA **********************************************************************/
-#define WsTcLock() EnterCriticalSection((LPCRITICAL_SECTION)&Catalog->Lock);
-#define WsTcUnlock() LeaveCriticalSection((LPCRITICAL_SECTION)&Catalog->Lock);
+#define WsTcLock() EnterCriticalSection(&Catalog->Lock);
+#define WsTcUnlock() LeaveCriticalSection(&Catalog->Lock);
/* FUNCTIONS *****************************************************************/
CHAR* CatalogKeyName;
/* Initialize the catalog lock and namespace list */
- InitializeCriticalSection((LPCRITICAL_SECTION)&Catalog->Lock);
+ InitializeCriticalSection(&Catalog->Lock);
InitializeListHead(&Catalog->ProtocolList);
/* Read the catalog name */
PTPROVIDER Provider;
IN SOCKET NewHandle;
INT Error;
- DWORD OptionLength;
+ INT OptionLength;
PLIST_ENTRY Entry;
WSAPROTOCOL_INFOW ProtocolInfo;
DWORD UniqueId;
SOL_SOCKET,
SO_PROTOCOL_INFOW,
(PCHAR)&ProtocolInfo,
- (LPINT)&OptionLength,
+ &OptionLength,
&Error);
/* Dereference the entry and check the result */
/* Release and delete the lock */
WsTcUnlock();
- DeleteCriticalSection((LPCRITICAL_SECTION)&Catalog->Lock);
+ DeleteCriticalSection(&Catalog->Lock);
/* Delete the object */
HeapFree(WsSockHeap, 0, Catalog);