diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 22:41:55 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 22:41:55 -0500 |
| commit | 0f373195de316b1b20a05ebff1463fb8a56b1f1b (patch) | |
| tree | dc7d5159640fadfbffa9f9ae3bb84e9a4cc5f2b3 /sysdata_windows.go | |
| parent | 6da43e8bb7bcd13de0a2a39ea8b0593ba9f279ef (diff) | |
Changed the sysData cache so that if we didn't fill it in yet, getSysData() returns nil instead of panicking, and the standard window procedure jumps directly to the default handler. Not what I originally wanted to do, but whatever, it finally works!
Diffstat (limited to 'sysdata_windows.go')
| -rw-r--r-- | sysdata_windows.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go index 72ac46b..714f501 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -38,9 +38,6 @@ var classTypes = [nctypes]*classData{ } func (s *sysData) make() (err error) { - sysDatasLock.Lock() - defer sysDatasLock.Unlock() - ret := make(chan uiret) defer close(ret) ct := classTypes[s.ctype] |
