wintun: load wintun.dll from RCDATA resource
Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
committed by
Jason A. Donenfeld
parent
3e08b8aee0
commit
65e03a9182
@@ -34,7 +34,7 @@ type Adapter struct {
|
||||
}
|
||||
|
||||
var (
|
||||
modwintun = windows.NewLazyDLL("wintun.dll")
|
||||
modwintun = newLazyDLL("wintun.dll")
|
||||
|
||||
procWintunCreateAdapter = modwintun.NewProc("WintunCreateAdapter")
|
||||
procWintunDeleteAdapter = modwintun.NewProc("WintunDeleteAdapter")
|
||||
|
||||
Reference in New Issue
Block a user