src/java.base/windows/native/libnet/Inet4AddressImpl.c
changeset 51589 9aa7ac61e68c
parent 51151 d6b131d2bc8b
child 55388 d57d61aafef9
--- a/src/java.base/windows/native/libnet/Inet4AddressImpl.c	Thu Aug 30 09:12:07 2018 +0200
+++ b/src/java.base/windows/native/libnet/Inet4AddressImpl.c	Wed Aug 29 10:11:51 2018 +0200
@@ -326,7 +326,7 @@
     ReplyBuffer = (VOID *)malloc(ReplySize);
     if (ReplyBuffer == NULL) {
         IcmpCloseHandle(hIcmpFile);
-        NET_ThrowNew(env, WSAGetLastError(), "Unable to allocate memory");
+        NET_ThrowNew(env, -1, "Unable to allocate memory");
         return JNI_FALSE;
     }