summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/opt_class.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/opt_class.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/opt_class.cpp')
-rw-r--r--plugins/Popup/src/opt_class.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Popup/src/opt_class.cpp b/plugins/Popup/src/opt_class.cpp
index 82d71b288a..af038bce55 100644
--- a/plugins/Popup/src/opt_class.cpp
+++ b/plugins/Popup/src/opt_class.cpp
@@ -36,7 +36,7 @@ Last change by : $Author: Merlin_de $
//---------------------------------------------------------------------------
//Workaround for MS bug ComboBox_SelectItemData
int ComboBox_SelectItem(HWND hwndCtl, int indexStart, char* data) {
- int i = 0;
+ int i=0;
for ( i ; i < ComboBox_GetCount(hwndCtl); i++) {
if(strcmp(data, (char*)ComboBox_GetItemData(hwndCtl, i))==0) {
ComboBox_SetCurSel (hwndCtl,i);
@@ -339,7 +339,7 @@ INT_PTR CALLBACK DlgProcOptsClasses(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
} //end if (tvi.lParam)
else {
//enable / disable controls
- for (int i = 0; i < SIZEOF(ctrlsAll); ++i) {
+ for (int i=0; i < SIZEOF(ctrlsAll); ++i) {
ShowWindow(GetDlgItem(hwnd, ctrlsAll[i].idCtrl), ctrlsAll[i].onTyp0 ? SW_SHOW : SW_HIDE);
EnableWindow(GetDlgItem(hwnd, ctrlsAll[i].idCtrl), ctrlsAll[i].onTyp0);
}
@@ -489,7 +489,7 @@ INT_PTR CALLBACK DlgProcOptsClasses(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
switch (((LPNMHDR)lParam)->code) {
case PSN_RESET:
{
- for(int i = 0; i < gTreeData.getCount(); ++i) {
+ for(int i=0; i < gTreeData.getCount(); ++i) {
switch (gTreeData[i]->typ) {
case 1:
LoadNotificationSettings(gTreeData[i], "PopUpNotifications");
@@ -506,7 +506,7 @@ INT_PTR CALLBACK DlgProcOptsClasses(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
}
case PSN_APPLY:
{
- for(int i = 0; i < gTreeData.getCount(); ++i) {
+ for(int i=0; i < gTreeData.getCount(); ++i) {
switch (gTreeData[i]->typ) {
case 1:
gTreeData[i]->notification.iSeconds = gTreeData[i]->timeoutValue;