From 125264843b0e1f8afccc85ea30c329f0366eb716 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Sep 2013 13:50:57 +0000 Subject: - custom screen saver detection code removed - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@6230 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdaway/sendmsg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/stdaway/sendmsg.cpp') diff --git a/src/core/stdaway/sendmsg.cpp b/src/core/stdaway/sendmsg.cpp index b981615f65..79bc374a97 100644 --- a/src/core/stdaway/sendmsg.cpp +++ b/src/core/stdaway/sendmsg.cpp @@ -315,11 +315,11 @@ static INT_PTR CALLBACK SetAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wPa static int StatusModeChange(WPARAM wParam, LPARAM lParam) { - BOOL bScreenSaverRunning = FALSE; int statusMode = (int)wParam; char *szProto = (char*)lParam; - if (protoModeMsgFlags == 0) return 0; + if (protoModeMsgFlags == 0) + return 0; // If its a global change check the complete PFLAGNUM_3 flags to see if a popup might be needed if ( !szProto) @@ -335,7 +335,7 @@ static int StatusModeChange(WPARAM wParam, LPARAM lParam) return 0; } - SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, &bScreenSaverRunning, FALSE); + BOOL bScreenSaverRunning = IsScreenSaverRunning(); if (GetStatusModeByte(statusMode, "Ignore")) ChangeAllProtoMessages(szProto, statusMode, NULL); -- cgit v1.2.3