From 17d455b71d44158a38f170c64a77dc46dc0ac404 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 29 Sep 1999 12:10:44 +0000 Subject: [PATCH] Set refcounter to 1 on initial init or WSAStartup/WSAStartup with following WSACleanup will already free the structures. --- misc/winsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/winsock.c b/misc/winsock.c index 5d9a5198174..2d5fcb291ea 100644 --- a/misc/winsock.c +++ b/misc/winsock.c @@ -554,7 +554,7 @@ INT16 WINAPI WSAStartup16(UINT16 wVersionRequested, LPWSADATA lpWSAData) _wsi_list = pwsi; pTask->pwsi = pwsi; } - else pwsi->num_startup++; + pwsi->num_startup++; /* return winsock information */