forked from joejulian/gio
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user