From 7cd7ff3ba6c408a30c83c62fd25018adb01d65f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 29 May 2014 17:34:37 +0000 Subject: Core: Fix return value on success in fnCListTrayNotify git-svn-id: http://svn.miranda-ng.org/main/trunk@9358 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clisttray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3