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,6 +406,7 @@ void NETCON_unload(void)
if(have_compat_cred_handle)
FreeCredentialsHandle(&compat_cred_handle);
DeleteCriticalSection(&init_sechandle_cs);
if(winsock_loaded)
WSACleanup();
}
......
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