Commit 4756b088 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Change WSACleanup - wsinfo is a static structure now.

parent 4aaaf410
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment