aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 14:39:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 14:39:01 +0200
commit737b322ae9f065f9852e4b6b016a90ba784808e8 (patch)
tree167b6d8249dd4e330e641ccdad4be4858d48a26e
parentREADME: update linux deps (diff)
downloadwireguard-windows-737b322ae9f065f9852e4b6b016a90ba784808e8.tar.xz
wireguard-windows-737b322ae9f065f9852e4b6b016a90ba784808e8.zip
service: fix ooo
-rw-r--r--service/service_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/service_manager.go b/service/service_manager.go
index 33729795..12264f1c 100644
--- a/service/service_manager.go
+++ b/service/service_manager.go
@@ -67,7 +67,7 @@ func userEnviron(token windows.Token) (env []string, err error) {
}
offset := uintptr(0)
for {
- entry := (*[1<<30 - 1]uint16)(unsafe.Pointer(block + offset))[:]
+ entry := (*[(1 << 30) - 1]uint16)(unsafe.Pointer(block + offset))[:]
for i, v := range entry {
if v == 0 {
entry = entry[:i]