diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-03 10:52:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-03 10:52:53 -0400 |
| commit | a46668ca22cc1407177eb559288744ea0d6a96dc (patch) | |
| tree | 6446613e3c305e67162195be215cecf689daf505 /stdwndclass_windows.go | |
| parent | 05828236ec87e191b491de72213e01d0d0c155bc (diff) | |
Migrated stdwndclass_windows.go to the new string handling.
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index 3c189a7..09cce8d 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -8,8 +8,8 @@ import ( "unsafe" ) -const ( - stdWndClass = "gouiwnd" +var ( + stdWndClass = toUTF16("gouiwnd") ) var ( @@ -139,7 +139,7 @@ var ( func registerStdWndClass() (err error) { wc := &_WNDCLASS{ - lpszClassName: uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(stdWndClass))), + lpszClassName: utf16ToArg(stdWndClass), lpfnWndProc: syscall.NewCallback(stdWndProc), hInstance: hInstance, hIcon: icon, |
