equal
deleted
inserted
replaced
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 } |