From 8e41c8a0bef2cb40747450ee27e2ca211a9f0e12 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 23 Sep 2019 10:25:11 +0200 Subject: [PATCH] ui/app: (windows) don't cast syscall.Handle to unsafe.Pointer The cast is not necessary and a syscall.Handle is not a pointer. Signed-off-by: Elias Naur --- ui/app/os_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/os_windows.go b/ui/app/os_windows.go index a71e3459..5cc43d30 100644 --- a/ui/app/os_windows.go +++ b/ui/app/os_windows.go @@ -695,7 +695,7 @@ func setProcessDPIAware() { } func setCapture(hwnd syscall.Handle) syscall.Handle { - r, _, _ := _SetCapture.Call(uintptr(unsafe.Pointer(hwnd))) + r, _, _ := _SetCapture.Call(uintptr(hwnd)) return syscall.Handle(r) }