Skip to content

Commit

Permalink
Fix invalid pointer in stack when stack grows
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmauro committed Aug 18, 2020
1 parent fa6a6f0 commit d55cc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion color_windows.go
Expand Up @@ -157,7 +157,7 @@ func EnableVirtualTerminalProcessing(stream syscall.Handle, enable bool) error {
mode &^= EnableVirtualTerminalProcessingMode
}

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

0 comments on commit d55cc88

Please sign in to comment.