diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-10 17:53:41 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-11 12:07:06 +0200 |
commit | bf66c69bd898b05444dc423284ea030fba4e1a6f (patch) | |
tree | 4192c9cc090db8e8366fb8874e9a08772c6071cd | |
parent | version: bump (diff) | |
download | wireguard-windows-bf66c69bd898b05444dc423284ea030fba4e1a6f.tar.xz wireguard-windows-bf66c69bd898b05444dc423284ea030fba4e1a6f.zip |
global: format
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | elevate/shellexecute.go | 2 | ||||
-rw-r--r-- | ringlogger/ringlogger.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/elevate/shellexecute.go b/elevate/shellexecute.go index 2ac5581c..d4daa97b 100644 --- a/elevate/shellexecute.go +++ b/elevate/shellexecute.go @@ -121,7 +121,7 @@ func ShellExecute(program string, arguments string, directory string, show int32 if err = windows.CoGetObject( windows.StringToUTF16Ptr("Elevation:Administrator!new:{3E5FC7F9-9A51-4367-9063-A120244FBEC7}"), &windows.BIND_OPTS3{ - CbStruct: uint32(unsafe.Sizeof(windows.BIND_OPTS3{})), + CbStruct: uint32(unsafe.Sizeof(windows.BIND_OPTS3{})), ClassContext: windows.CLSCTX_LOCAL_SERVER, }, &windows.GUID{0x6EDD6D74, 0xC007, 0x4E75, [8]byte{0xB7, 0x6A, 0xE5, 0x74, 0x09, 0x95, 0xE2, 0x4C}}, diff --git a/ringlogger/ringlogger.go b/ringlogger/ringlogger.go index 2d7c0c8f..443e1848 100644 --- a/ringlogger/ringlogger.go +++ b/ringlogger/ringlogger.go @@ -136,7 +136,7 @@ func (rl *Ringlogger) Write(p []byte) (n int, err error) { textLen := 3 + len(p) + len(rl.tag) if textLen > maxLogLineLength-1 { p = p[:maxLogLineLength-1-3-len(rl.tag)] - textLen = maxLogLineLength-1 + textLen = maxLogLineLength - 1 } line.line[textLen] = 0 line.line[0] = 0 // Null out the beginning and only let it extend after the other writes have completed |