From 65e03a918274534015ca189bfadc33cbba9e3ec8 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 6 Nov 2020 05:24:50 +0100 Subject: wintun: load wintun.dll from RCDATA resource Signed-off-by: Simon Rozman Signed-off-by: Jason A. Donenfeld --- tun/wintun/memmod/memmod_windows_32.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tun/wintun/memmod/memmod_windows_32.go (limited to 'tun/wintun/memmod/memmod_windows_32.go') diff --git a/tun/wintun/memmod/memmod_windows_32.go b/tun/wintun/memmod/memmod_windows_32.go new file mode 100644 index 0000000..bd2e254 --- /dev/null +++ b/tun/wintun/memmod/memmod_windows_32.go @@ -0,0 +1,16 @@ +// +build 386 arm + +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2020 WireGuard LLC. All Rights Reserved. + */ + +package memmod + +func (opthdr *IMAGE_OPTIONAL_HEADER) imageOffset() uintptr { + return 0 +} + +func (module *Module) check4GBBoundaries(alignedImageSize uintptr) (err error) { + return +} -- cgit v1.2.3