8188135: Fix VS 2010 build after "8187631: Refactor FileDescriptor close implementation"

Reviewed-by: dholmes, alanb
This commit is contained in:
Goetz Lindenmaier 2017-09-29 10:00:58 +02:00
parent a1b8c392f1
commit a0218352fc

View File

@ -550,10 +550,10 @@ void
fileDescriptorClose(JNIEnv *env, jobject this)
{
FD fd = (*env)->GetLongField(env, this, IO_handle_fdID);
HANDLE h = (HANDLE)fd;
if ((*env)->ExceptionOccurred(env)) {
return;
}
HANDLE h = (HANDLE)fd;
if (h == INVALID_HANDLE_VALUE) {
return;