From 0079a4b42942beb74c3f713fb52389a72d95579a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 24 Sep 2019 13:57:13 +0200 Subject: mod: bump versions Signed-off-by: Jason A. Donenfeld --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') 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) } -- cgit v1.2.3-59-g8ed1b