1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:54:42 -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:
Alex Brainman 2011-07-19 13:18:21 +10:00
parent a5a94f5d57
commit 208e6e6dfc

View File

@ -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)