mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 00:45:35 +00:00
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 {
|
func setCapture(hwnd syscall.Handle) syscall.Handle {
|
||||||
r, _, _ := _SetCapture.Call(uintptr(unsafe.Pointer(hwnd)))
|
r, _, _ := _SetCapture.Call(uintptr(hwnd))
|
||||||
return syscall.Handle(r)
|
return syscall.Handle(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user