From fe4d9b992d9b28c9734d06fb41fb093014c7051d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 7 Jun 2014 14:50:05 -0400 Subject: [PATCH] Changed SetWindowLong() to SetWindowLongPtr() in the Windows backend. I forgot I already had some there :| --- common_windows.go | 1 - sysdata_windows.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common_windows.go b/common_windows.go index 41a123f..d319f7e 100644 --- a/common_windows.go +++ b/common_windows.go @@ -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") diff --git a/sysdata_windows.go b/sysdata_windows.go index 021b80a..8d858a1 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -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),