diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-15 12:45:17 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-15 12:45:17 -0500 |
| commit | a65e5d8743822e370b0e07f6bd44ac78c98de2d0 (patch) | |
| tree | 28f261cbea59806747e3dd97bd947602d4737aec | |
| parent | 0c0bbc29fad681bc779f341380760cdd81543dc3 (diff) | |
Fixed build errors in the previous commits.
| -rw-r--r-- | controls_windows.go | 4 | ||||
| -rw-r--r-- | sysdata_windows.go | 8 | ||||
| -rw-r--r-- | window.go | 1 |
3 files changed, 8 insertions, 5 deletions
diff --git a/controls_windows.go b/controls_windows.go index 9fce627..9e32c94 100644 --- a/controls_windows.go +++ b/controls_windows.go @@ -186,7 +186,8 @@ const ( // TODO filter out notifications not provided in windows 2000 const ( // from winuser.h - // TODO get _CB_ERR out + _CB_ERR = (-1) + _CB_ERRSPACE = (-2) _CBN_ERRSPACE = (-1) // TODO this will blow up the Go compiler if it's used _CBN_SELCHANGE = 1 _CBN_DBLCLK = 2 @@ -363,6 +364,7 @@ const ( // from winuser.h _LB_OKAY = 0 _LB_ERR = (-1) // TODO this will blow up the Go compiler if it's used + _LB_ERRSPACE = (-2) _LBN_ERRSPACE = (-2) // TODO this will blow up the Go compiler if it's used _LBN_SELCHANGE = 1 _LBN_DBLCLK = 2 diff --git a/sysdata_windows.go b/sysdata_windows.go index e08cbb6..da7e14b 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -25,7 +25,7 @@ type classData struct { mkid bool altStyle uint32 appendMsg uintptr - insertBeforeString uintptr + insertBeforeMsg uintptr deleteMsg uintptr selectedIndexMsg uintptr selectedIndexErr int @@ -353,7 +353,7 @@ func (s *sysData) selectedIndex() (int, error) { ret: ret, } r := <-ret - if r.ret == classTypes[s.ctype].selectedIndexErr { + if r.ret == uintptr(classTypes[s.ctype].selectedIndexErr) { return -1, nil } return int(r.ret), nil @@ -379,12 +379,12 @@ func (s *sysData) selectedIndices() ([]int, error) { uintptr(0), uintptr(0), }, - ret: ret + ret: ret, } r := <-ret // TODO handle errors indices := make([]int, r.ret) - uitask <- &uimisg{ + uitask <- &uimsg{ call: _sendMessage, p: []uintptr{ uintptr(s.hwnd), @@ -3,6 +3,7 @@ package main import ( + "fmt" "sync" ) |
