From 0f373195de316b1b20a05ebff1463fb8a56b1f1b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 11 Feb 2014 22:41:55 -0500 Subject: 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! --- sysdata_windows.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'sysdata_windows.go') 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] -- cgit v1.2.3