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