mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Francois L'Archeveque spotted that the variable `winsock2_module'
only exists when compiling for IPv6, so we shouldn't try assigning to it the rest of the time. [originally from svn r7059]
This commit is contained in:
parent
55947f2346
commit
dc03c3948f
@ -205,7 +205,10 @@ int sk_startup(int hi, int lo)
|
||||
|
||||
void sk_init(void)
|
||||
{
|
||||
winsock2_module = winsock_module = LoadLibrary("WS2_32.DLL");
|
||||
#ifndef NO_IPV6
|
||||
winsock2_module =
|
||||
#endif
|
||||
winsock_module = LoadLibrary("WS2_32.DLL");
|
||||
if (!winsock_module) {
|
||||
winsock_module = LoadLibrary("WSOCK32.DLL");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user