summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-03 22:47:49 -0400
committerPietro Gagliardi <[email protected]>2014-06-03 22:47:49 -0400
commitd69c90401fc3cf15d2d0e0f177be0bdd2299daf8 (patch)
treee4cf40c3f24c224d7069c83cad9539b6190cc386 /sysdata_windows.go
parentd7c37671f369301371d54acf8da3ffa6862d5982 (diff)
Decided to panic in the hwnd sanity check in sysdata_windows.go; the situation /is/ exceptional, after all (and we need to just get rid of all errors sometime).
Diffstat (limited to 'sysdata_windows.go')
-rw-r--r--sysdata_windows.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go
index 46cbf56..d41fe58 100644
--- a/sysdata_windows.go
+++ b/sysdata_windows.go
@@ -187,7 +187,6 @@ func (s *sysData) make(window *sysData) (err error) {
if !ct.storeSysData { // regular control; store s.hwnd ourselves
s.hwnd = _HWND(r.ret)
} else if s.hwnd != _HWND(r.ret) { // we store sysData in storeSysData(); sanity check
- // TODO really panic?
panic(fmt.Errorf("hwnd mismatch creating window/control: storeSysData() stored 0x%X but CreateWindowEx() returned 0x%X", s.hwnd, ret))
}
if !ct.doNotLoadFont {