Fix potential issue with WinEvent class.
Merge pull request #37 from oharaandrew314/event-fix

Fix potential issue with WinEvent class.