summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}