windows: correct GetStdHandle definition

GetStdHandle: https://msdn.microsoft.com/en-us/library/windows/desktop/ms683231(v=vs.85).aspx
DWORD: https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx

Change-Id: I2fb794f85418e7846687911c4513886eb1803770
Reviewed-on: https://go-review.googlesource.com/39608
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Tamir Duberstein
2017-04-07 04:52:13 +00:00
committed by Alex Brainman
parent 7de4796419
commit ff24cb3cd8
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ func CloseHandle(handle Handle) (err error) {
return
}
func GetStdHandle(stdhandle int) (handle Handle, err error) {
func GetStdHandle(stdhandle uint32) (handle Handle, err error) {
r0, _, e1 := syscall.Syscall(procGetStdHandle.Addr(), 1, uintptr(stdhandle), 0, 0)
handle = Handle(r0)
if handle == InvalidHandle {