src/windows/native/java/io/io_util_md.c

Print this page

        

@@ -249,16 +249,10 @@
         flagsAndAttributes, /* flags and attributes */
         NULL);
     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;
     }
     return (jlong) h;
 }