aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/msirunner_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-23 15:18:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-23 15:26:55 +0200
commitbb4ae18c8a81f376c435b78fe80e087569a2efce (patch)
treed0a5711d8f2fa18bdede241686a1608480aa5436 /updater/msirunner_windows.go
parentui: fix listview painting on win 7 classic theme and high contrast themes (diff)
downloadwireguard-windows-bb4ae18c8a81f376c435b78fe80e087569a2efce.tar.xz
wireguard-windows-bb4ae18c8a81f376c435b78fe80e087569a2efce.zip
manager: use winpipe instead of winio
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'updater/msirunner_windows.go')
-rw-r--r--updater/msirunner_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/msirunner_windows.go b/updater/msirunner_windows.go
index 92fd4e0e..38acc0ac 100644
--- a/updater/msirunner_windows.go
+++ b/updater/msirunner_windows.go
@@ -16,8 +16,8 @@ import (
"syscall"
"unsafe"
- "github.com/Microsoft/go-winio"
"golang.org/x/sys/windows"
+ "golang.zx2c4.com/wireguard/ipc/winpipe"
)
func runMsi(msiPath string, userToken uintptr) error {
@@ -61,7 +61,7 @@ func msiTempFile() (*os.File, error) {
if n != int(len(randBytes)) {
return nil, errors.New("Unable to generate random bytes")
}
- sd, err := winio.SddlToSecurityDescriptor("O:SYD:PAI(A;;FA;;;SY)(A;;FR;;;BA)")
+ sd, err := winpipe.SddlToSecurityDescriptor("O:SYD:PAI(A;;FA;;;SY)(A;;FR;;;BA)")
if err != nil {
return nil, err
}