summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
-rw-r--r--win32/win32.c5
1 files changed, 4 insertions, 1 deletions
@@ -8269,7 +8269,10 @@ w32_io_info(VALUE *file, w32_io_info_t *st)
tmp = rb_check_convert_type_with_id(*file, T_FILE, "IO", idTo_io);
if (!NIL_P(tmp)) {
- f = (HANDLE)rb_w32_get_osfhandle(rb_io_descriptor(tmp));
if (f == (HANDLE)-1) return INVALID_HANDLE_VALUE;
}
else {