зеркало из https://github.com/github/putty.git
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:
Родитель
55947f2346
Коммит
dc03c3948f
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче