Fix bugs on Windows 7 - the app didn't respond when PM_QS_INPUT was also tested..