Converted comctl_windows.go to use the new string wrapper functions.

This commit is contained in:
Pietro Gagliardi 2014-06-03 03:37:48 -04:00
parent 3058927f2e
commit 25d8aeb993
1 changed files with 1 additions and 1 deletions

View File

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