diff options
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_captcha.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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);
|