windows, take 3

This commit is contained in:
Andrew Gallant
2016-09-05 21:02:08 -04:00
parent 8887250860
commit 5b42999a3d
2 changed files with 3 additions and 2 deletions

View File

@@ -37,6 +37,6 @@ pub fn stdout_is_atty() -> bool {
unsafe {
let fd = winapi::winbase::STD_OUTPUT_HANDLE;
let mut out = 0;
kernel32::GetConsoleMode(handle, &mut out) != 0
kernel32::GetConsoleMode(kernel32::GetStdHandle(fd), &mut out) != 0
}
}