summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/popup_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-26 12:12:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-26 12:12:58 +0000
commitaaf3d972a3b32623f7e2984382adc5ca633bb280 (patch)
treef866e46edb71fca99e57ed08d8bfe34cbb3e86fc /plugins/Popup/src/popup_thread.cpp
parent5940fca1e79e3e2a53abfcc9805bfc631fa281da (diff)
attemp to fix crash in Popups history
git-svn-id: http://svn.miranda-ng.org/main/trunk@2084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/popup_thread.cpp')
-rw-r--r--plugins/Popup/src/popup_thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Popup/src/popup_thread.cpp b/plugins/Popup/src/popup_thread.cpp
index 134e10ba22..d74857dffd 100644
--- a/plugins/Popup/src/popup_thread.cpp
+++ b/plugins/Popup/src/popup_thread.cpp
@@ -220,7 +220,7 @@ void RepositionPopups()
PopupWnd2 *prev = 0;
if (PopUpOptions.ReorderPopUps)
{
- for (int i = 0; i < popupList.getCount(); ++i)
+ for (int i=0; i < popupList.getCount(); ++i)
{
UpdatePopupPosition(prev, popupList[i]);
prev = popupList[i];
@@ -245,7 +245,7 @@ static LRESULT CALLBACK PopupThreadManagerWndProc(HWND hwnd, UINT message, WPARA
{
gTerminating = true;
if (DBGetContactSettingByte(NULL, MODULNAME, "FastExit", 0))
- for (int i = 0; i < popupList.getCount(); ++i)
+ for (int i=0; i < popupList.getCount(); ++i)
PUDeletePopUp(popupList[i]->getHwnd());
PostQuitMessage(0);
break;
@@ -278,7 +278,7 @@ static LRESULT CALLBACK PopupThreadManagerWndProc(HWND hwnd, UINT message, WPARA
case UTM_REMOVE_WINDOW:
{
// popupList.remove(ptr) would be nicer, but it requires sortFunc :(
- for (int i = 0; i < popupList.getCount(); ++i)
+ for (int i=0; i < popupList.getCount(); ++i)
if (popupList[i] == wnd)
{
popupList.remove(i);