Corey Stup points out that any attempt to display the message "Unable to load
[u/mdw/putty] / windows / winnet.c
index bcfc004..a839dfc 100644 (file)
@@ -335,7 +335,8 @@ void sk_cleanup(void)
        sktree = NULL;
     }
 
-    p_WSACleanup();
+    if (p_WSACleanup)
+       p_WSACleanup();
     if (winsock_module)
        FreeLibrary(winsock_module);
 #ifndef NO_IPV6