Skip to content

Commit

Permalink
Fix crash #4 as proposed by @dirty49374
Browse files Browse the repository at this point in the history
  • Loading branch information
fkollmann committed Apr 28, 2020
1 parent f55edac commit 71a52a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sequences.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package sequences

import (
"syscall"
"unsafe"
)

var (
Expand All @@ -27,7 +26,7 @@ func EnableVirtualTerminalProcessing(stream syscall.Handle, enable bool) error {
mode &^= ENABLE_VIRTUAL_TERMINAL_PROCESSING
}

ret, _, err := setConsoleMode.Call(uintptr(unsafe.Pointer(stream)), uintptr(mode))
ret, _, err := setConsoleMode.Call(uintptr(stream), uintptr(mode))
if ret == 0 {
return err
}
Expand Down

0 comments on commit 71a52a1

Please sign in to comment.