summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-03 03:37:48 -0400
committerPietro Gagliardi <[email protected]>2014-06-03 03:37:48 -0400
commit25d8aeb99386e7c1bf92f43f4bff270b34cd9f8b (patch)
treeeab056e551e0b376f3c7e5a729a922fc7fe7f931
parent3058927f2ebe588358002a15ba4575b4b5b4876a (diff)
Converted comctl_windows.go to use the new string wrapper functions.
-rw-r--r--comctl_windows.go2
1 files changed, 1 insertions, 1 deletions
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