summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-05-29 17:39:09 +0000
committerRobert Pösel <robyer@seznam.cz>2014-05-29 17:39:09 +0000
commit6dceffec74f7597ee131bce742b2f637b09399a8 (patch)
tree686886ab8b229c7849d3d9f1cb57551b29f02a63 /src/modules
parent7cd7ff3ba6c408a30c83c62fd25018adb01d65f6 (diff)
Revert "Core: Fix return value on success in fnCListTrayNotify"
It actually worked that way. git-svn-id: http://svn.miranda-ng.org/main/trunk@9359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/clist/clisttray.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/clist/clisttray.cpp b/src/modules/clist/clisttray.cpp
index 1f29c67181..052a1c9637 100644
--- a/src/modules/clist/clisttray.cpp
+++ b/src/modules/clist/clisttray.cpp
@@ -836,7 +836,7 @@ int fnCListTrayNotify(MIRANDASYSTRAYNOTIFY* msn)
nid.szInfoTitle[ SIZEOF(nid.szInfoTitle)-1 ] = 0;
nid.uTimeout = msn->uTimeout;
nid.dwInfoFlags = (msn->dwInfoFlags & ~NIIF_INTERN_UNICODE);
- return Shell_NotifyIconW(NIM_MODIFY, &nid) ? 0 : -1;
+ return Shell_NotifyIconW(NIM_MODIFY, &nid) == 0;
}
else {
NOTIFYICONDATAA nid = { 0 };
@@ -848,7 +848,7 @@ int fnCListTrayNotify(MIRANDASYSTRAYNOTIFY* msn)
lstrcpynA(nid.szInfoTitle, msn->szInfoTitle, sizeof(nid.szInfoTitle));
nid.uTimeout = msn->uTimeout;
nid.dwInfoFlags = msn->dwInfoFlags;
- return Shell_NotifyIconA(NIM_MODIFY, &nid) ? 0 : -1;
+ return Shell_NotifyIconA(NIM_MODIFY, &nid) == 0;
}
}