Made the sysData.make() change from the previous commit on the Windows backend.

This commit is contained in:
Pietro Gagliardi 2014-04-01 16:47:36 -04:00
parent 2647d28f2b
commit 7a079f1cbb
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ func (s *sysData) delChild(id _HMENU) {
delete(s.children, id)
}
func (s *sysData) make(initText string, window *sysData) (err error) {
func (s *sysData) make(window *sysData) (err error) {
ret := make(chan uiret)
defer close(ret)
ct := classTypes[s.ctype]
@ -159,7 +159,7 @@ func (s *sysData) make(initText string, window *sysData) (err error) {
p: []uintptr{
uintptr(ct.xstyle),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(classname))),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(initText))),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(""))), // TODO can this be NULL?
style,
uintptr(_CW_USEDEFAULT),
uintptr(_CW_USEDEFAULT),