summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-11-19 16:32:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-11-19 16:32:07 +0300
commit36abafbd09cb74f66804938238dd5be13caff5dd (patch)
treecef6ac29d654e8107eeb48533e6f06778ef09882
parent9271d964814ce1272483b8ea95dd2e00f2471802 (diff)
warning fixes
-rw-r--r--libs/freeimage/src/main.cpp3
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/libs/freeimage/src/main.cpp b/libs/freeimage/src/main.cpp
index 7c44439554..07083a3702 100644
--- a/libs/freeimage/src/main.cpp
+++ b/libs/freeimage/src/main.cpp
@@ -161,8 +161,7 @@ EXTERN_C DLL_API FIBITMAP* DLL_CALLCONV FreeImage_CreateDIBFromHBITMAP(HBITMAP h
// So we save these infos below. This is needed for palettized images only.
int nColors = FreeImage_GetColorsUsed(dib);
HDC dc = GetDC(nullptr);
- int Success = GetDIBits(dc, hBmp, 0, FreeImage_GetHeight(dib),
- FreeImage_GetBits(dib), FreeImage_GetInfo(dib), DIB_RGB_COLORS);
+ GetDIBits(dc, hBmp, 0, FreeImage_GetHeight(dib), FreeImage_GetBits(dib), FreeImage_GetInfo(dib), DIB_RGB_COLORS);
ReleaseDC(nullptr, dc);
// restore BITMAPINFO members
FreeImage_GetInfoHeader(dib)->biClrUsed = nColors;
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index a69a5c3c35..087cbe418c 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -672,7 +672,7 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe
if (jnResponse["freeoffline"].as_bool())
for (auto &it : arContacts) {
- MCONTACT cc = (MCONTACT)it;
+ MCONTACT cc = (UINT_PTR)it;
LONG userID = getDword(cc, "ID", VK_INVALID_USER);
if (userID == m_myUserId || userID == VK_FEED_USER)
continue;
@@ -838,7 +838,7 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq
if (bCleanContacts)
for (auto &it : arContacts) {
- MCONTACT hContact = (MCONTACT)it;
+ MCONTACT hContact = (UINT_PTR)it;
LONG userID = getDword(hContact, "ID", VK_INVALID_USER);
bool bIsFriendGroup = IsGroupUser(hContact) && getBool(hContact, "friend");
if (userID == m_myUserId || userID == VK_FEED_USER || bIsFriendGroup)