ws2_32: Improve WSAStartup/WSACleanup tracing.

This commit is contained in:
Bruno Jesus 2014-07-03 11:18:28 -03:00 committed by Alexandre Julliard
parent ec3a9a54f5
commit adde46f552

View File

@ -1238,7 +1238,7 @@ int WINAPI WSAStartup(WORD wVersionRequested, LPWSADATA lpWSAData)
/* don't do anything with lpWSAData->lpVendorInfo */ /* don't do anything with lpWSAData->lpVendorInfo */
/* (some apps don't allocate the space for this field) */ /* (some apps don't allocate the space for this field) */
TRACE("succeeded\n"); TRACE("succeeded starts: %d\n", num_startup);
return 0; return 0;
} }
@ -1250,6 +1250,7 @@ INT WINAPI WSACleanup(void)
{ {
if (num_startup) { if (num_startup) {
num_startup--; num_startup--;
TRACE("pending cleanups: %d\n", num_startup);
return 0; return 0;
} }
SetLastError(WSANOTINITIALISED); SetLastError(WSANOTINITIALISED);