8188135: Fix VS 2010 build after "8187631: Refactor FileDescriptor close implementation"
Reviewed-by: dholmes, alanb
--- a/src/java.base/windows/native/libjava/io_util_md.c Fri Sep 29 00:52:30 2017 +0000
+++ b/src/java.base/windows/native/libjava/io_util_md.c Fri Sep 29 10:00:58 2017 +0200
@@ -550,10 +550,10 @@
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;