summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-11 19:34:28 -0500
committerPietro Gagliardi <[email protected]>2014-02-11 19:34:47 -0500
commitbc531d60d703e0113973a965450383049b930b73 (patch)
tree110be8d2b2e9c45f4b2002a68996fed93ed682e6 /sysdata_windows.go
parenta4182c606b634615adb7f61d8b22dd92fdb8cabb (diff)
More of the previous error and not printing panics... derp me. Still not fixed yet though...
Diffstat (limited to 'sysdata_windows.go')
-rw-r--r--sysdata_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go
index 6711c91..7dbaae6 100644
--- a/sysdata_windows.go
+++ b/sysdata_windows.go
@@ -60,7 +60,7 @@ func (s *sysData) make() (err error) {
ret: ret,
}
r := <-ret
- if r.err != nil {
+ if r.ret == 0 { // failure
return r.err
}
s.hwnd = _HWND(r.ret)