diff --git a/src/windows/native/java/io/Console_md.c b/src/windows/native/java/io/Console_md.c index cc229697fd776854d4479e7ab33901d54c1592d0..5d5cec5a6c4dd994fd498a64aea060ce0e26cacf 100644 --- a/src/windows/native/java/io/Console_md.c +++ b/src/windows/native/java/io/Console_md.c @@ -38,12 +38,10 @@ Java_java_io_Console_istty(JNIEnv *env, jclass cls) { if (hStdIn == INVALID_HANDLE_VALUE && (hStdIn = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) { - JNU_ThrowIOExceptionWithLastError(env, "Open Console input failed"); return JNI_FALSE; } if (hStdOut == INVALID_HANDLE_VALUE && (hStdOut = GetStdHandle(STD_OUTPUT_HANDLE)) == INVALID_HANDLE_VALUE) { - JNU_ThrowIOExceptionWithLastError(env, "Open Console output failed"); return JNI_FALSE; } if (GetFileType(hStdIn) != FILE_TYPE_CHAR ||