From 25d8aeb99386e7c1bf92f43f4bff270b34cd9f8b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 3 Jun 2014 03:37:48 -0400 Subject: Converted comctl_windows.go to use the new string wrapper functions. --- comctl_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comctl_windows.go') diff --git a/comctl_windows.go b/comctl_windows.go index 2830e3c..b11c892 100644 --- a/comctl_windows.go +++ b/comctl_windows.go @@ -56,7 +56,7 @@ func forceCommonControls6() (err error) { actctx.cbSize = uint32(unsafe.Sizeof(actctx)) // TODO set ACTCTX_FLAG_SET_PROCESS_DEFAULT? I can't find a reference to figure out what this means - actctx.lpSource = syscall.StringToUTF16Ptr(filename) + actctx.lpSource = toUTF16(filename) r1, _, err := _createActCtx.Call(uintptr(unsafe.Pointer(&actctx))) // don't negConst() INVALID_HANDLE_VALUE; windowsconstgen was given a pointer by windows.h, and pointers are unsigned, so converting it back to signed doesn't work -- cgit v1.2.3