Skip to content

Commit

Permalink
Attempt 2...
Browse files Browse the repository at this point in the history
  • Loading branch information
lif committed Mar 21, 2024
1 parent d67238d commit 80c14f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ mod tests {
#[cfg(target_family = "windows")]
{
use winapi::um::wincon::*;
let syscall_return =
unsafe { GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, std::process::id()) };
let syscall_return = unsafe { GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, 0) };
assert_ne!(syscall_return, 0);

let Err(super::Error::Signal("CTRL-BREAK")) =
Expand Down

0 comments on commit 80c14f6

Please sign in to comment.