aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun/memmod/memmod_windows_64.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-07 21:56:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-07 21:56:32 +0100
commit82128c47d90a54faded017ad3e5bc61eb0c641db (patch)
tree91ec906e69ba373f1ef014dd1ce684cb459d44c8 /tun/wintun/memmod/memmod_windows_64.go
parentmod: update deps (diff)
downloadwireguard-go-82128c47d90a54faded017ad3e5bc61eb0c641db.tar.xz
wireguard-go-82128c47d90a54faded017ad3e5bc61eb0c641db.zip
global: switch to using %w instead of %v for Errorf
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/wintun/memmod/memmod_windows_64.go')
-rw-r--r--tun/wintun/memmod/memmod_windows_64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/wintun/memmod/memmod_windows_64.go b/tun/wintun/memmod/memmod_windows_64.go
index 46ac677..a66418f 100644
--- a/tun/wintun/memmod/memmod_windows_64.go
+++ b/tun/wintun/memmod/memmod_windows_64.go
@@ -29,7 +29,7 @@ func (module *Module) check4GBBoundaries(alignedImageSize uintptr) (err error) {
windows.MEM_RESERVE|windows.MEM_COMMIT,
windows.PAGE_READWRITE)
if err != nil {
- return fmt.Errorf("Error allocating memory block: %v", err)
+ return fmt.Errorf("Error allocating memory block: %w", err)
}
}
return