- Let require explicit semicolons when using the Ws***(Un)Lock macros (and thus remove the semicolon from their definition).
svn path=/trunk/; revision=74066
HANDLE WsAsyncCancelledTaskHandle;
HINSTANCE WsAsyncDllHandle;
-#define WsAsyncLock() EnterCriticalSection(&WsAsyncCritSect);
-#define WsAsyncUnlock() LeaveCriticalSection(&WsAsyncCritSect);
+#define WsAsyncLock() EnterCriticalSection(&WsAsyncCritSect)
+#define WsAsyncUnlock() LeaveCriticalSection(&WsAsyncCritSect)
/* FUNCTIONS *****************************************************************/
/* DATA **********************************************************************/
-#define WsTcLock() EnterCriticalSection(&Catalog->Lock);
-#define WsTcUnlock() LeaveCriticalSection(&Catalog->Lock);
+#define WsTcLock() EnterCriticalSection(&Catalog->Lock)
+#define WsTcUnlock() LeaveCriticalSection(&Catalog->Lock)
/* FUNCTIONS *****************************************************************/
PWSPROCESS CurrentWsProcess;
-#define WsProcLock() EnterCriticalSection(&Process->ThreadLock);
-#define WsProcUnlock() LeaveCriticalSection(&Process->ThreadLock);
+#define WsProcLock() EnterCriticalSection(&Process->ThreadLock)
+#define WsProcUnlock() LeaveCriticalSection(&Process->ThreadLock)
/* FUNCTIONS *****************************************************************/
/* DATA **********************************************************************/
-#define WsNcLock() EnterCriticalSection(&Catalog->Lock);
-#define WsNcUnlock() LeaveCriticalSection(&Catalog->Lock);
+#define WsNcLock() EnterCriticalSection(&Catalog->Lock)
+#define WsNcUnlock() LeaveCriticalSection(&Catalog->Lock)
/* FUNCTIONS *****************************************************************/
GoOn = Callback(Context, CatalogEntry);
}
- /* Release lock */
+ /* Release the lock */
WsNcUnlock();
}
}
}
- /* Release the lock */
+ /* Release the lock and return */
WsNcUnlock();
return ErrorCode;
}
/* DATA **********************************************************************/
-#define WsNqLock() EnterCriticalSection(&NsQuery->Lock);
-#define WsNqUnlock() LeaveCriticalSection(&NsQuery->Lock);
+#define WsNqLock() EnterCriticalSection(&NsQuery->Lock)
+#define WsNqUnlock() LeaveCriticalSection(&NsQuery->Lock)
/* FUNCTIONS *****************************************************************/
PWS_ATTEMPT_AUTODIAL_NAME lpfnWSAttemptAutodialName;
PWS_NOTE_SUCCESSFUL_HOSTENT_LOOKUP lpfnWSNoteSuccessfulHostentLookup;
-#define WsRasLock() EnterCriticalSection(&WsRasHelperLock);
-#define WsRasUnlock() LeaveCriticalSection(&WsRasHelperLock);
+#define WsRasLock() EnterCriticalSection(&WsRasHelperLock)
+#define WsRasUnlock() LeaveCriticalSection(&WsRasHelperLock)
/* FUNCTIONS *****************************************************************/
PTCATALOG_ENTRY CatalogEntry;
LPWSTR UnicodeString;
DWORD Length = *lpdwAddressStringLength;
+
DPRINT("WSAAddressToStringA: %p\n", lpsaAddress);
/* Enter prolog */
DWORD CatalogEntryId;
PTCATALOG Catalog;
PTCATALOG_ENTRY CatalogEntry;
+
DPRINT("WSAAddressToStringW: %p\n", lpsaAddress);
/* Enter prolog */
PWSTHREAD Thread;
INT ErrorCode;
PNSQUERY Query = hLookup;
+
DPRINT("WSALookupServiceEnd: %lx\n", hLookup);
/* Enter prolog */
INT ErrorCode;
LPWSAQUERYSETW UnicodeQuerySet = NULL;
DWORD UnicodeQuerySetSize = 0;
+
DPRINT("WSALookupServiceBeginA: %p\n", lpqsRestrictions);
/* Verify pointer */
PWSTHREAD Thread;
INT ErrorCode;
PNSQUERY Query;
+
DPRINT("WSALookupServiceBeginW: %p\n", lpqsRestrictions);
/* Enter prolog */
PWSTHREAD Thread;
INT ErrorCode;
PNSQUERY Query = hLookup;
+
DPRINT("WSALookupServiceNextW: %lx\n", hLookup);
/* Enter prolog */
LPWSAQUERYSETW UnicodeQuerySet;
DWORD UnicodeQuerySetSize;
INT ErrorCode;
+
DPRINT("WSALookupServiceNextA: %lx\n", hLookup);
/* Verify pointers */
PWSPROCESS WsProcess;
PNSCATALOG Catalog;
NSPROVIDER_ENUM_CONTEXT Context;
+
DPRINT("WSAEnumNameSpaceProvidersInternal: %lx\n", lpnspBuffer);
if (!lpdwBufferLength)
PTCATALOG_ENTRY CatalogEntry;
LPWSTR UnicodeString;
DWORD Length = (DWORD)strlen(AddressString) + 1;
+
DPRINT("WSAStringToAddressA: %s\n", AddressString);
/* Enter prolog */
DWORD CatalogEntryId;
PTCATALOG Catalog;
PTCATALOG_ENTRY CatalogEntry;
+
DPRINT("WSAStringToAddressW: %S\n", AddressString);
/* Enter prolog */
PWS_SOCK_POST_ROUTINE WsSockPostRoutine = NULL;
CRITICAL_SECTION WsStartupLock;
-#define WsStartupLock() EnterCriticalSection(&WsStartupLock);
-#define WsStartupUnlock() LeaveCriticalSection(&WsStartupLock);
+#define WsStartupLock() EnterCriticalSection(&WsStartupLock)
+#define WsStartupUnlock() LeaveCriticalSection(&WsStartupLock)
/* FUNCTIONS *****************************************************************/