From 6dceffec74f7597ee131bce742b2f637b09399a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 29 May 2014 17:39:09 +0000 Subject: 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 --- src/modules/clist/clisttray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') 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; } } -- cgit v1.2.3