summaryrefslogtreecommitdiff
path: root/redo/comctl32_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-01 18:25:59 -0400
committerPietro Gagliardi <[email protected]>2014-08-01 18:25:59 -0400
commit80828b8a7d2273d5f35b7114c8dfc10605fc5df8 (patch)
treed7897af6491bcbe1b0f1ede039220e936e5fe740 /redo/comctl32_windows.go
parent7f027bae3c34afb1261ef60aa3754676f0fa648a (diff)
Changed LPCWSTR to LPWSTR in the Windows code as the C means const and there are a few cases of const->non-const conversions as a result.
Diffstat (limited to 'redo/comctl32_windows.go')
-rw-r--r--redo/comctl32_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/comctl32_windows.go b/redo/comctl32_windows.go
index 55ba49f..8d5e62e 100644
--- a/redo/comctl32_windows.go
+++ b/redo/comctl32_windows.go
@@ -39,7 +39,7 @@ func initCommonControls() (err error) {
var errmsg *C.char
- errcode := C.initCommonControls(C.LPCWSTR(unsafe.Pointer(syscall.StringToUTF16Ptr(filename))), &errmsg)
+ errcode := C.initCommonControls(C.LPWSTR(unsafe.Pointer(syscall.StringToUTF16Ptr(filename))), &errmsg)
if errcode != 0 || errmsg != nil {
return fmt.Errorf("error actually initializing comctl32.dll: %s: %v", C.GoString(errmsg), syscall.Errno(errcode))
}