diff --git a/cmd/dockerd/service_windows.go b/cmd/dockerd/service_windows.go index 87d57e41f6..0172169517 100644 --- a/cmd/dockerd/service_windows.go +++ b/cmd/dockerd/service_windows.go @@ -397,7 +397,7 @@ func initPanicFile(path string) error { // it when it panics. Remember the old stderr to restore it before removing // the panic file. sh := windows.STD_ERROR_HANDLE - h, err := windows.GetStdHandle(sh) + h, err := windows.GetStdHandle(uint32(sh)) if err != nil { return err }