diff --git a/src/pkg/exp/wingui/winapi.go b/src/pkg/exp/wingui/winapi.go index fb0d610097c..fdf9d9ee0b6 100644 --- a/src/pkg/exp/wingui/winapi.go +++ b/src/pkg/exp/wingui/winapi.go @@ -9,7 +9,7 @@ import ( "unsafe" ) -func loadDll(fname string) uint32 { +func loadDll(fname string) syscall.Handle { h, e := syscall.LoadLibrary(fname) if e != 0 { abortf("LoadLibrary(%s) failed with err=%d.\n", fname, e) @@ -17,7 +17,7 @@ func loadDll(fname string) uint32 { return h } -func getSysProcAddr(m uint32, pname string) uintptr { +func getSysProcAddr(m syscall.Handle, pname string) uintptr { p, e := syscall.GetProcAddress(m, pname) if e != 0 { abortf("GetProcAddress(%s) failed with err=%d.\n", pname, e)