diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-24 13:57:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-27 10:44:35 +0200 |
commit | 0079a4b42942beb74c3f713fb52389a72d95579a (patch) | |
tree | fd12d48fbe2d3fb184016ca8ae7ff7e512f46049 /main.go | |
parent | Revert "updater: use winhttp to reduce filesize" (diff) | |
download | wireguard-windows-0079a4b42942beb74c3f713fb52389a72d95579a.tar.xz wireguard-windows-0079a4b42942beb74c3f713fb52389a72d95579a.zip |
mod: bump versions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -57,7 +57,7 @@ func usage() { func checkForWow64() { var b bool - err := windows.IsWow64Process(windows.GetCurrentProcess(), &b) + err := windows.IsWow64Process(windows.CurrentProcess(), &b) if err != nil { fatalf("Unable to determine whether the process is running under WOW64: %v", err) } @@ -69,7 +69,7 @@ func checkForWow64() { func checkForAdminGroup() { // This is not a security check, but rather a user-confusion one. var processToken windows.Token - err := windows.OpenProcessToken(windows.GetCurrentProcess(), windows.TOKEN_QUERY|windows.TOKEN_DUPLICATE, &processToken) + err := windows.OpenProcessToken(windows.CurrentProcess(), windows.TOKEN_QUERY|windows.TOKEN_DUPLICATE, &processToken) if err != nil { fatalf("Unable to open current process token: %v", err) } |