src/java.base/windows/native/libjava/io_util_md.c
changeset 47289 6439a2eca58b
parent 47235 9ef10c6e67b8
child 49440 396ea30afbd5
child 56106 40e61db323c2
equal deleted inserted replaced
47288:9ca862331fb4 47289:6439a2eca58b
   548 // Function to close the fd held by this FileDescriptor and set fd to -1.
   548 // Function to close the fd held by this FileDescriptor and set fd to -1.
   549 void
   549 void
   550 fileDescriptorClose(JNIEnv *env, jobject this)
   550 fileDescriptorClose(JNIEnv *env, jobject this)
   551 {
   551 {
   552     FD fd = (*env)->GetLongField(env, this, IO_handle_fdID);
   552     FD fd = (*env)->GetLongField(env, this, IO_handle_fdID);
       
   553     HANDLE h = (HANDLE)fd;
   553     if ((*env)->ExceptionOccurred(env)) {
   554     if ((*env)->ExceptionOccurred(env)) {
   554         return;
   555         return;
   555     }
   556     }
   556     HANDLE h = (HANDLE)fd;
       
   557 
   557 
   558     if (h == INVALID_HANDLE_VALUE) {
   558     if (h == INVALID_HANDLE_VALUE) {
   559         return;
   559         return;
   560     }
   560     }
   561 
   561