Changed SetWindowLong() to SetWindowLongPtr() in the Windows backend. I forgot I already had some there :|

This commit is contained in:
Pietro Gagliardi 2014-06-07 14:50:05 -04:00
parent 7a22f0e073
commit fe4d9b992d
2 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,6 @@ var (
_createWindowEx = user32.NewProc("CreateWindowExW")
_getClientRect = user32.NewProc("GetClientRect")
_moveWindow = user32.NewProc("MoveWindow")
_setWindowLong = user32.NewProc("SetWindowLongW")
_setWindowPos = user32.NewProc("SetWindowPos")
_setWindowText = user32.NewProc("SetWindowTextW")
_showWindow = user32.NewProc("ShowWindow")

View File

@ -545,7 +545,7 @@ func (s *sysData) setIndeterminate() {
ret := make(chan uiret)
defer close(ret)
uitask <- &uimsg{
call: _setWindowLong,
call: _setWindowLongPtr,
p: []uintptr{
uintptr(s.hwnd),
negConst(_GWL_STYLE),
@ -592,7 +592,7 @@ func (s *sysData) setProgress(percent int) {
}
<-ret
uitask <- &uimsg{
call: _setWindowLong,
call: _setWindowLongPtr,
p: []uintptr{
uintptr(s.hwnd),
negConst(_GWL_STYLE),