Changed SetWindowLong() to SetWindowLongPtr() in the Windows backend. I forgot I already had some there :|
This commit is contained in:
parent
7a22f0e073
commit
fe4d9b992d
|
@ -88,7 +88,6 @@ var (
|
||||||
_createWindowEx = user32.NewProc("CreateWindowExW")
|
_createWindowEx = user32.NewProc("CreateWindowExW")
|
||||||
_getClientRect = user32.NewProc("GetClientRect")
|
_getClientRect = user32.NewProc("GetClientRect")
|
||||||
_moveWindow = user32.NewProc("MoveWindow")
|
_moveWindow = user32.NewProc("MoveWindow")
|
||||||
_setWindowLong = user32.NewProc("SetWindowLongW")
|
|
||||||
_setWindowPos = user32.NewProc("SetWindowPos")
|
_setWindowPos = user32.NewProc("SetWindowPos")
|
||||||
_setWindowText = user32.NewProc("SetWindowTextW")
|
_setWindowText = user32.NewProc("SetWindowTextW")
|
||||||
_showWindow = user32.NewProc("ShowWindow")
|
_showWindow = user32.NewProc("ShowWindow")
|
||||||
|
|
|
@ -545,7 +545,7 @@ func (s *sysData) setIndeterminate() {
|
||||||
ret := make(chan uiret)
|
ret := make(chan uiret)
|
||||||
defer close(ret)
|
defer close(ret)
|
||||||
uitask <- &uimsg{
|
uitask <- &uimsg{
|
||||||
call: _setWindowLong,
|
call: _setWindowLongPtr,
|
||||||
p: []uintptr{
|
p: []uintptr{
|
||||||
uintptr(s.hwnd),
|
uintptr(s.hwnd),
|
||||||
negConst(_GWL_STYLE),
|
negConst(_GWL_STYLE),
|
||||||
|
@ -592,7 +592,7 @@ func (s *sysData) setProgress(percent int) {
|
||||||
}
|
}
|
||||||
<-ret
|
<-ret
|
||||||
uitask <- &uimsg{
|
uitask <- &uimsg{
|
||||||
call: _setWindowLong,
|
call: _setWindowLongPtr,
|
||||||
p: []uintptr{
|
p: []uintptr{
|
||||||
uintptr(s.hwnd),
|
uintptr(s.hwnd),
|
||||||
negConst(_GWL_STYLE),
|
negConst(_GWL_STYLE),
|
||||||
|
|
Loading…
Reference in New Issue