File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
package load
5
5
6
- import "golang.org/x/sys/windows"
6
+ import (
7
+ "syscall"
8
+ )
7
9
8
10
func OpenLibrary (name string ) (uintptr , error ) {
9
- handle , err := windows .LoadLibrary (name )
11
+ handle , err := syscall .LoadLibrary (name )
10
12
return uintptr (handle ), err
11
13
}
12
14
13
15
func OpenSymbol (lib uintptr , name string ) (uintptr , error ) {
14
- return windows .GetProcAddress (windows .Handle (lib ), name )
16
+ return syscall .GetProcAddress (syscall .Handle (lib ), name )
15
17
}
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ package purego
6
6
import (
7
7
"reflect"
8
8
"syscall"
9
-
10
- "golang.org/x/sys/windows"
11
9
)
12
10
13
11
var syscall15XABI0 uintptr
@@ -44,5 +42,5 @@ func NewCallback(fn interface{}) uintptr {
44
42
}
45
43
46
44
func loadSymbol (handle uintptr , name string ) (uintptr , error ) {
47
- return windows .GetProcAddress (windows .Handle (handle ), name )
45
+ return syscall .GetProcAddress (syscall .Handle (handle ), name )
48
46
}
You can’t perform that action at this time.
0 commit comments