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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-23 10:25:11 +02:00
parent 2d8072fbbb
commit 8e41c8a0be
+1 -1
View File
@@ -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)
}