Merge branch 'develop' into fix-bugs-link

This commit is contained in:
TheZ3ro
2017-05-28 10:12:55 +02:00
committed by GitHub

View File

@@ -52,8 +52,8 @@ ScreenLockListenerWin::~ScreenLockListenerWin()
HWND h= reinterpret_cast<HWND>(static_cast<QWidget*>(parent())->winId());
WTSUnRegisterSessionNotification(h);
if (m_powernotificationhandle) {
UnregisterPowerSettingNotification(reinterpret_cast<HPOWERNOTIFY>(m_powernotificationhandle));
if (m_powerNotificationHandle) {
UnregisterPowerSettingNotification(reinterpret_cast<HPOWERNOTIFY>(m_powerNotificationHandle));
}
}