diff --git a/src/windows/native/java/io/io_util_md.c b/src/windows/native/java/io/io_util_md.c index d886aea9f622b106286755c3eb1b426d0328440d..55e9625377e247f5d4d89e214bbbd7857746b457 100644 --- a/src/windows/native/java/io/io_util_md.c +++ b/src/windows/native/java/io/io_util_md.c @@ -251,12 +251,6 @@ winFileHandleOpen(JNIEnv *env, jstring path, int flags) free(pathbuf); if (h == INVALID_HANDLE_VALUE) { - int error = GetLastError(); - if (error == ERROR_TOO_MANY_OPEN_FILES) { - JNU_ThrowByName(env, JNU_JAVAIOPKG "IOException", - "Too many open files"); - return -1; - } throwFileNotFoundException(env, path); return -1; }