aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-24 13:57:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-27 10:44:35 +0200
commit0079a4b42942beb74c3f713fb52389a72d95579a (patch)
treefd12d48fbe2d3fb184016ca8ae7ff7e512f46049 /main.go
parentRevert "updater: use winhttp to reduce filesize" (diff)
downloadwireguard-windows-0079a4b42942beb74c3f713fb52389a72d95579a.tar.xz
wireguard-windows-0079a4b42942beb74c3f713fb52389a72d95579a.zip
mod: bump versions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index d14b1cd5..a84b4205 100644
--- a/main.go
+++ b/main.go
@@ -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)
}