From c59e500fa8f3e08d5111a946dd18df1e82cdd270 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 4 Jul 2005 21:54:24 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=6514 --- client/win/win_screensaver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/win/win_screensaver.cpp b/client/win/win_screensaver.cpp index 8243b3e59f..434475197e 100755 --- a/client/win/win_screensaver.cpp +++ b/client/win/win_screensaver.cpp @@ -1633,7 +1633,8 @@ VOID CScreensaver::UpdateErrorBox() { VOID CScreensaver::DoPaint(HWND hwnd, HDC hdc) { HMONITOR hMonitor = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST); INTERNALMONITORINFO* pMonitorInfo; - for(DWORD iMonitor = 0; iMonitor < m_dwNumMonitors; iMonitor++) { + DWORD iMonitor = 0; + for(iMonitor = 0; iMonitor < m_dwNumMonitors; iMonitor++) { pMonitorInfo = &m_Monitors[iMonitor]; if (pMonitorInfo->hMonitor == hMonitor) break;