From 777dc2174f34c2a4d4499c3d63ef8914ed9ecb81 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Mar 2018 23:38:31 +0300 Subject: old AdvaImg services converted into Image_* functions --- protocols/JabberG/src/jabber_captcha.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_captcha.cpp b/protocols/JabberG/src/jabber_captcha.cpp index c48aea4c00..f4ea12630f 100644 --- a/protocols/JabberG/src/jabber_captcha.cpp +++ b/protocols/JabberG/src/jabber_captcha.cpp @@ -146,12 +146,7 @@ bool CJabberProto::ProcessCaptcha(HXML node, HXML parentNode, ThreadData *info) if (buffer == nullptr) return false; - IMGSRVC_MEMIO memio; - memio.iLen = (long)bufferLen; - memio.pBuf = (void *)buffer; - memio.fif = FIF_UNKNOWN; /* detect */ - memio.flags = 0; - param.bmp = (HBITMAP)CallService(MS_IMG_LOADFROMMEM, (WPARAM)&memio, 0); + param.bmp = Image_LoadFromMem(buffer, bufferLen, FIF_UNKNOWN); BITMAP bmp = {0}; GetObject(param.bmp, sizeof(bmp), &bmp); -- cgit v1.2.3