aboutsummaryrefslogtreecommitdiffstats
path: root/tun/wintun/memmod/syscall_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-03-03 14:38:26 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-03-08 21:04:09 -0700
commit497ba95de7833566d696768c8a366e39fdb40f8b (patch)
tree2eae133ac40b551c6ec41af7d2d72b1c4dc8367c /tun/wintun/memmod/syscall_windows.go
parentconn: linux: unexport mutex (diff)
downloadwireguard-go-497ba95de7833566d696768c8a366e39fdb40f8b.tar.xz
wireguard-go-497ba95de7833566d696768c8a366e39fdb40f8b.zip
memmod: do not use IsBadReadPtr
It should be enough to check for the trailing zero name. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/wintun/memmod/syscall_windows.go')
-rw-r--r--tun/wintun/memmod/syscall_windows.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/tun/wintun/memmod/syscall_windows.go b/tun/wintun/memmod/syscall_windows.go
index 11715c0..31dd0b5 100644
--- a/tun/wintun/memmod/syscall_windows.go
+++ b/tun/wintun/memmod/syscall_windows.go
@@ -324,8 +324,6 @@ const (
DLL_PROCESS_DETACH = 0
)
-//sys isBadReadPtr(addr uintptr, ucb uintptr) (ret bool) = kernel32.IsBadReadPtr
-
type SYSTEM_INFO struct {
ProcessorArchitecture uint16
Reserved uint16