aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 11:33:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 11:33:51 +0200
commita78c7464b1c7790fb43fa0f3e0bd15b057f9c31e (patch)
tree80a3f0465b6eca0458087c29feb93101bced4342 /main.go
parentbuild: we no longer use security attributes (diff)
downloadwireguard-windows-a78c7464b1c7790fb43fa0f3e0bd15b057f9c31e.tar.xz
wireguard-windows-a78c7464b1c7790fb43fa0f3e0bd15b057f9c31e.zip
global: use tab after //sys
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 7780354a..c0dc5c49 100644
--- a/main.go
+++ b/main.go
@@ -32,8 +32,8 @@ var flags = [...]string{
"/dumplog OUTPUT_PATH",
}
-//sys messageBoxEx(hwnd windows.Handle, text *uint16, title *uint16, typ uint, languageId uint16) = user32.MessageBoxExW
-//sys isWow64Process(handle windows.Handle, isWow64 *bool) (err error) = kernel32.IsWow64Process
+//sys messageBoxEx(hwnd windows.Handle, text *uint16, title *uint16, typ uint, languageId uint16) = user32.MessageBoxExW
+//sys isWow64Process(handle windows.Handle, isWow64 *bool) (err error) = kernel32.IsWow64Process
func fatal(v ...interface{}) {
messageBoxEx(0, windows.StringToUTF16Ptr(fmt.Sprint(v...)), windows.StringToUTF16Ptr("Error"), 0x00000010, 0)
@@ -90,7 +90,7 @@ func checkForAdminGroup() {
}
}
-//sys shellExecute(hwnd windows.Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int) (err error) = shell32.ShellExecuteW
+//sys shellExecute(hwnd windows.Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int) (err error) = shell32.ShellExecuteW
func execElevatedManagerServiceInstaller() error {
path, err := os.Executable()
if err != nil {