summaryrefslogtreecommitdiff
path: root/src/modules/clist
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-05-29 17:34:37 +0000
committerRobert Pösel <robyer@seznam.cz>2014-05-29 17:34:37 +0000
commit7cd7ff3ba6c408a30c83c62fd25018adb01d65f6 (patch)
tree79d001d91d32d1aa671e60e4789300f48739de37 /src/modules/clist
parent43c21d816162fcb25fb5dbc91796d17dd327928c (diff)
Core: Fix return value on success in fnCListTrayNotify
git-svn-id: http://svn.miranda-ng.org/main/trunk@9358 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist')
-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 052a1c9637..1f29c67181 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;
+ return Shell_NotifyIconW(NIM_MODIFY, &nid) ? 0 : -1;
}
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;
+ return Shell_NotifyIconA(NIM_MODIFY, &nid) ? 0 : -1;
}
}