mirror of
https://github.com/golang/go
synced 2024-11-25 01:08:02 -07:00
exp/wingui: make sure it builds again
R=golang-dev, r CC=golang-dev https://golang.org/cl/4770041
This commit is contained in:
parent
a5a94f5d57
commit
208e6e6dfc
@ -9,7 +9,7 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
func loadDll(fname string) uint32 {
|
func loadDll(fname string) syscall.Handle {
|
||||||
h, e := syscall.LoadLibrary(fname)
|
h, e := syscall.LoadLibrary(fname)
|
||||||
if e != 0 {
|
if e != 0 {
|
||||||
abortf("LoadLibrary(%s) failed with err=%d.\n", fname, e)
|
abortf("LoadLibrary(%s) failed with err=%d.\n", fname, e)
|
||||||
@ -17,7 +17,7 @@ func loadDll(fname string) uint32 {
|
|||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
|
|
||||||
func getSysProcAddr(m uint32, pname string) uintptr {
|
func getSysProcAddr(m syscall.Handle, pname string) uintptr {
|
||||||
p, e := syscall.GetProcAddress(m, pname)
|
p, e := syscall.GetProcAddress(m, pname)
|
||||||
if e != 0 {
|
if e != 0 {
|
||||||
abortf("GetProcAddress(%s) failed with err=%d.\n", pname, e)
|
abortf("GetProcAddress(%s) failed with err=%d.\n", pname, e)
|
||||||
|
Loading…
Reference in New Issue
Block a user