1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +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:
Simon Tatham 2007-01-05 18:43:58 +00:00
parent 55947f2346
commit dc03c3948f

View File

@ -205,7 +205,10 @@ int sk_startup(int hi, int lo)
void sk_init(void) 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) { if (!winsock_module) {
winsock_module = LoadLibrary("WSOCK32.DLL"); winsock_module = LoadLibrary("WSOCK32.DLL");
} }