aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/service_manager.go
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
commitaa1ee8d2a02eae3c83b642323cc454e81828fc23 (patch)
tree167b6d8249dd4e330e641ccdad4be4858d48a26e /service/service_manager.go
parentREADME: update linux deps (diff)
downloadwireguard-windows-aa1ee8d2a02eae3c83b642323cc454e81828fc23.tar.xz
wireguard-windows-aa1ee8d2a02eae3c83b642323cc454e81828fc23.zip
service: fix ooo
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/service_manager.go')
-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]