diff options
Diffstat (limited to 'tun/wintun/dll_windows.go')
-rw-r--r-- | tun/wintun/dll_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/dll_windows.go b/tun/wintun/dll_windows.go index 9f04f73..dd97bbc 100644 --- a/tun/wintun/dll_windows.go +++ b/tun/wintun/dll_windows.go @@ -12,8 +12,8 @@ import ( "unsafe" ) -func newLazyDLL(name string) *lazyDLL { - return &lazyDLL{Name: name} +func newLazyDLL(name string, onLoad func(d *lazyDLL)) *lazyDLL { + return &lazyDLL{Name: name, onLoad: onLoad} } func (d *lazyDLL) NewProc(name string) *lazyProc { |