aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/raise.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-12-09 17:53:59 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-12-09 23:13:56 +0100
commit182247f5c830f93bfdb2a843a0ce3d394008c6d0 (patch)
treea2e3c0356c6c5ff2fcb8b572654d39e4735c4850 /ui/raise.go
parentbuild: update to go 1.17.4 and drop upstreamed patches (diff)
downloadwireguard-windows-182247f5c830f93bfdb2a843a0ce3d394008c6d0.tar.xz
wireguard-windows-182247f5c830f93bfdb2a843a0ce3d394008c6d0.zip
global: apply gofumpt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/raise.go')
-rw-r--r--ui/raise.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/raise.go b/ui/raise.go
index 2d748a5c..c402bea7 100644
--- a/ui/raise.go
+++ b/ui/raise.go
@@ -55,7 +55,7 @@ func WaitForRaiseUIThenQuit() {
var handle win.HWINEVENTHOOK
runtime.LockOSThread()
defer runtime.UnlockOSThread()
- handle, err := win.SetWinEventHook(win.EVENT_OBJECT_CREATE, win.EVENT_OBJECT_CREATE, 0, func(hWinEventHook win.HWINEVENTHOOK, event uint32, hwnd win.HWND, idObject int32, idChild int32, idEventThread uint32, dwmsEventTime uint32) uintptr {
+ handle, err := win.SetWinEventHook(win.EVENT_OBJECT_CREATE, win.EVENT_OBJECT_CREATE, 0, func(hWinEventHook win.HWINEVENTHOOK, event uint32, hwnd win.HWND, idObject, idChild int32, idEventThread, dwmsEventTime uint32) uintptr {
class := make([]uint16, len(manageWindowWindowClass)+2) /* Plus 2, one for the null terminator, and one to see if this is only a prefix */
n, err := win.GetClassName(hwnd, &class[0], len(class))
if err != nil || n != len(manageWindowWindowClass) || windows.UTF16ToString(class) != manageWindowWindowClass {