]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
tun/wintun/memmod: gofmt
authorJosh Bleecher Snyder <josh@tailscale.com>
Sat, 16 Jan 2021 01:25:34 +0000 (17:25 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Jan 2021 18:57:04 +0000 (19:57 +0100)
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
tun/wintun/memmod/memmod_windows.go

index e1bb4d54c7590197c8f4cc0c1ae9ab6d06bf9e51..d0b4741c5f3b5c94330f8401f127041cc6d3c5d1 100644 (file)
@@ -313,7 +313,7 @@ func (module *Module) buildImportTable() error {
        module.modules = make([]windows.Handle, 0, 16)
        importDesc := (*IMAGE_IMPORT_DESCRIPTOR)(a2p(module.codeBase + uintptr(directory.VirtualAddress)))
        for !isBadReadPtr(uintptr(unsafe.Pointer(importDesc)), unsafe.Sizeof(*importDesc)) && importDesc.Name != 0 {
-               handle, err := windows.LoadLibraryEx(windows.BytePtrToString((*byte)(a2p(module.codeBase + uintptr(importDesc.Name)))), 0, windows.LOAD_LIBRARY_SEARCH_SYSTEM32)
+               handle, err := windows.LoadLibraryEx(windows.BytePtrToString((*byte)(a2p(module.codeBase+uintptr(importDesc.Name)))), 0, windows.LOAD_LIBRARY_SEARCH_SYSTEM32)
                if err != nil {
                        return fmt.Errorf("Error loading module: %w", err)
                }