From c2139596f3673d1209d7d398deb36f2b7a170af5 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Wed, 26 Dec 2018 09:28:57 +0500 Subject: VKontakte: fix PVS warnings --- protocols/VKontakte/src/vk_feed.cpp | 2 +- protocols/VKontakte/src/vk_queue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index 82f488f5af..e36d2332e1 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -475,7 +475,7 @@ CVKNewsItem* CVkProto::GetVkNotificationsItem(const JSONNode &jnItem, OBJLISTwszText.c_str()); vkNotification->wszText = wszNotificaton; diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index c4ef960cc0..fd5b1bc621 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -169,7 +169,7 @@ void CVkProto::WorkerThread(void*) ULONG utime = GetTickCount(); lWaitingTime = (utime - uTime[0]) > 1500 ? 0 : 1500 - (utime - uTime[0]); - if (!(pReq->m_bApiReq) || lWaitingTime < 0) + if (!(pReq->m_bApiReq)) lWaitingTime = 0; } -- cgit v1.2.3