diff options
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r-- | runtime/ops/tty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs index bc45c9375..e9e2e6700 100644 --- a/runtime/ops/tty.rs +++ b/runtime/ops/tty.rs @@ -228,7 +228,7 @@ fn op_isatty( { use winapi::um::consoleapi; - let handle = get_windows_handle(&std_file)?; + let handle = get_windows_handle(std_file)?; let mut test_mode: DWORD = 0; // If I cannot get mode out of console, it is not a console. Ok(unsafe { consoleapi::GetConsoleMode(handle, &mut test_mode) != 0 }) |