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).

This commit is contained in:
Pietro Gagliardi 2014-06-03 22:47:49 -04:00
parent d7c37671f3
commit d69c90401f
1 changed files with 0 additions and 1 deletions

View File

@ -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 {