author | michaelm |
Tue, 05 Nov 2019 18:34:02 +0000 | |
branch | unixdomainchannels |
changeset 58939 | aca099f4b3ec |
parent 58935 | f31f0c8bff89 |
child 58981 | 5c79956cc7d7 |
--- a/src/java.base/windows/native/libnio/ch/Net.c Tue Nov 05 16:00:51 2019 +0000 +++ b/src/java.base/windows/native/libnio/ch/Net.c Tue Nov 05 18:34:02 2019 +0000 @@ -130,7 +130,7 @@ Java_sun_nio_ch_Net_unixDomainSocketSupported(JNIEnv *env, jclass cl) { SOCKET fd = socket(PF_UNIX, SOCK_STREAM, 0); - if (fd < 0) { + if (fd == INVALID_SOCKET) { return JNI_FALSE; } closesocket(fd);