Skip to content

Commit

Permalink
try explicit typing
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Sep 12, 2016
1 parent caf5a56 commit 850acec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ pub fn is(stream: Stream) -> bool {
kernel32::GetConsoleMode(std_handle, &mut out) != 0
},
_ => {
let mut buffer_info = ::std::mem::zeroed();
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms683171(v=vs.85).aspx
let mut buffer_info: winapi::PCONSOLE_SCREEN_BUFFER_INFO = ::std::mem::uninitialized();
let ret = kernel32::GetConsoleScreenBufferInfo(std_handle, &mut buffer_info);
let last_err = kernel32::GetLastError();
panic!("is invalid? {:#?} result {:#?} last err {:#?}",
Expand Down

0 comments on commit 850acec

Please sign in to comment.