mirror of
https://github.com/corda/corda.git
synced 2025-06-14 13:18:18 +00:00
set wsaInitialized to true on success in Java_java_net_Socket_init
This commit is contained in:
@ -29,6 +29,8 @@ Java_java_net_Socket_init(JNIEnv* ONLY_ON_WINDOWS(e), jclass)
|
|||||||
int r = WSAStartup(MAKEWORD(2, 2), &data);
|
int r = WSAStartup(MAKEWORD(2, 2), &data);
|
||||||
if (r or LOBYTE(data.wVersion) != 2 or HIBYTE(data.wVersion) != 2) {
|
if (r or LOBYTE(data.wVersion) != 2 or HIBYTE(data.wVersion) != 2) {
|
||||||
throwNew(e, "java/io/IOException", "WSAStartup failed");
|
throwNew(e, "java/io/IOException", "WSAStartup failed");
|
||||||
|
} else {
|
||||||
|
wsaInitialized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user