diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-26 12:12:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-26 12:12:58 +0000 |
commit | aaf3d972a3b32623f7e2984382adc5ca633bb280 (patch) | |
tree | f866e46edb71fca99e57ed08d8bfe34cbb3e86fc /plugins/Popup/src/notifications.cpp | |
parent | 5940fca1e79e3e2a53abfcc9805bfc631fa281da (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/notifications.cpp')
-rw-r--r-- | plugins/Popup/src/notifications.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Popup/src/notifications.cpp b/plugins/Popup/src/notifications.cpp index bed6cdc116..c52ff490d2 100644 --- a/plugins/Popup/src/notifications.cpp +++ b/plugins/Popup/src/notifications.cpp @@ -82,7 +82,7 @@ void LoadNotifications() void UnloadTreeData()
{
- for (int i = 0; i < gTreeData.getCount(); ++i) {
+ for (int i=0; i < gTreeData.getCount(); ++i) {
if(gTreeData[i]->typ == 2) {
mir_free(gTreeData[i]->pupClass.pszName);
mir_free(gTreeData[i]->pupClass.pszDescription);
@@ -128,7 +128,7 @@ void SaveNotificationSettings(POPUPTREEDATA *ptd, char* szModul) ptd->notification.lpzName);
DBWriteContactSettingString(NULL, szModul, setting, ptd->rightAction);
- for (int i = 0; i < ptd->notification.actionCount; ++i)
+ for (int i=0; i < ptd->notification.actionCount; ++i)
{
if (!lstrcmpA(ptd->leftAction, ptd->notification.lpActions[i].lpzTitle))
{
@@ -243,7 +243,7 @@ HANDLE RegisterNotification(POPUPNOTIFICATION *notification) HANDLE FindTreeData(LPTSTR group, LPTSTR name, BYTE typ)
{
- for(int i = 0; i < gTreeData.getCount(); i++) {
+ for(int i=0; i < gTreeData.getCount(); i++) {
if ( gTreeData[i]->typ == typ &&
(!group || (_tcscmp(gTreeData[i]->pszTreeRoot, group) == 0)) &&
(!name || (_tcscmp(gTreeData[i]->pszDescription, name) == 0)))
@@ -333,7 +333,7 @@ bool PerformAction(HANDLE hNotification, HWND hwnd, UINT message, WPARAM wparam, return true;
}
- for (int i = 0; i < ptd->notification.actionCount; ++i)
+ for (int i=0; i < ptd->notification.actionCount; ++i)
{
if (!(ptd->notification.lpActions[i].dwFlags&PNAF_CALLBACK))
continue;
|