From f0d7043a6ec0011c2fd8c8fbbe1250b15ae4aef3 Mon Sep 17 00:00:00 2001 From: pescuma Date: Wed, 4 Jun 2008 03:17:05 +0000 Subject: some fixes git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@111 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/utils/ContactAsyncQueue.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Plugins/utils/ContactAsyncQueue.cpp') diff --git a/Plugins/utils/ContactAsyncQueue.cpp b/Plugins/utils/ContactAsyncQueue.cpp index ca6bf83..9ea2682 100644 --- a/Plugins/utils/ContactAsyncQueue.cpp +++ b/Plugins/utils/ContactAsyncQueue.cpp @@ -22,9 +22,12 @@ Boston, MA 02111-1307, USA. // Itens with higher time at end -static int QueueSortItems(const QueueItem *i1, const QueueItem *i2) +static int QueueSortItems(const QueueItem *oldItem, const QueueItem *newItem) { - return i1->check_time - i2->check_time; + if (oldItem->check_time == newItem->check_time) + return -1; + + return oldItem->check_time - newItem->check_time; } // Itens with higher time at end -- cgit v1.2.3