From 208e6e6dfc542bd3c9a8a1ac520c66683ab871aa Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 19 Jul 2011 13:18:21 +1000 Subject: [PATCH] exp/wingui: make sure it builds again R=golang-dev, r CC=golang-dev https://golang.org/cl/4770041 --- src/pkg/exp/wingui/winapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)