Commit 6d4abc78 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Call WSACleanup only if WSAStartup was previously called successfully.

Spotted by Piotr.
parent 5d578b48
......@@ -406,7 +406,8 @@ void NETCON_unload(void)
if(have_compat_cred_handle)
FreeCredentialsHandle(&compat_cred_handle);
DeleteCriticalSection(&init_sechandle_cs);
WSACleanup();
if(winsock_loaded)
WSACleanup();
}
/* translate a unix error code into a winsock one */
......
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