Change WSACleanup - wsinfo is a static structure now.

This commit is contained in:
Gerard Patel 2001-01-17 01:47:47 +00:00 committed by Alexandre Julliard
parent 4aaaf41019
commit 4756b088c1
1 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ static void WINSOCK_DeleteIData(void)
if( iData->buffer ) SEGPTR_FREE(iData->buffer);
if( iData->dbuffer ) SEGPTR_FREE(iData->dbuffer);
HeapFree(GetProcessHeap(), 0, iData);
wsinfo.num_startup = 0;
}
/***********************************************************************
@ -676,7 +676,7 @@ INT WINAPI WSAStartup(UINT wVersionRequested, LPWSADATA lpWSAData)
INT WINAPI WSACleanup(void)
{
LPWSINFO pwsi = WINSOCK_GetIData();
if( pwsi ) {
if( pwsi->num_startup ) {
if( --pwsi->num_startup > 0 ) return 0;
WINSOCK_DeleteIData();