diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-12 11:37:45 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-12 11:37:45 +0200 |
commit | 4408f019a23aced393ba43b439136f9d9a8c3a65 (patch) | |
tree | a04f668a44aba6574dad0794e694e2312fae522f /ui/raise.go | |
parent | service: run UI with elevated token (diff) | |
download | wireguard-windows-4408f019a23aced393ba43b439136f9d9a8c3a65.tar.xz wireguard-windows-4408f019a23aced393ba43b439136f9d9a8c3a65.zip |
ui: adjust message filter for raise
High integrity means UIPI blocks this, so let it through.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/raise.go')
-rw-r--r-- | ui/raise.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/raise.go b/ui/raise.go index c4a45833..9a2794d1 100644 --- a/ui/raise.go +++ b/ui/raise.go @@ -32,8 +32,7 @@ func RaiseUI() bool { if hwnd == 0 { return false } - win.SendMessage(hwnd, selectCorrectTabMsg, 0, 0) - raise(hwnd) + win.SendMessage(hwnd, raiseMsg, 0, 0) return true } @@ -47,8 +46,7 @@ func WaitForRaiseUIThenQuit() { return 0 } win.UnhookWinEvent(handle) - win.SendMessage(hwnd, selectCorrectTabMsg, 0, 0) - raise(hwnd) + win.SendMessage(hwnd, raiseMsg, 0, 0) os.Exit(0) return 0 }, 0, 0, win.WINEVENT_SKIPOWNPROCESS|win.WINEVENT_OUTOFCONTEXT) |