jdk/src/windows/native/java/io/io_util_md.c
changeset 19381 5251302e7dc7
parent 19032 e31afe87fb92
child 23561 babc1414a7e4
equal deleted inserted replaced
19380:22eefc44fad6 19381:5251302e7dc7
   249         flagsAndAttributes, /* flags and attributes */
   249         flagsAndAttributes, /* flags and attributes */
   250         NULL);
   250         NULL);
   251     free(pathbuf);
   251     free(pathbuf);
   252 
   252 
   253     if (h == INVALID_HANDLE_VALUE) {
   253     if (h == INVALID_HANDLE_VALUE) {
   254         int error = GetLastError();
       
   255         if (error == ERROR_TOO_MANY_OPEN_FILES) {
       
   256             JNU_ThrowByName(env, JNU_JAVAIOPKG "IOException",
       
   257                             "Too many open files");
       
   258             return -1;
       
   259         }
       
   260         throwFileNotFoundException(env, path);
   254         throwFileNotFoundException(env, path);
   261         return -1;
   255         return -1;
   262     }
   256     }
   263     return (jlong) h;
   257     return (jlong) h;
   264 }
   258 }