From fe83051082d1509bd653b718f119f884646d20e5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jan 2018 18:59:51 +0300 Subject: MS_IMG_LOAD replaced with Bitmap_Load where possible --- protocols/Gadu-Gadu/src/image.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Gadu-Gadu/src') diff --git a/protocols/Gadu-Gadu/src/image.cpp b/protocols/Gadu-Gadu/src/image.cpp index 7cb803d91d..3056ad8c3c 100644 --- a/protocols/Gadu-Gadu/src/image.cpp +++ b/protocols/Gadu-Gadu/src/image.cpp @@ -1066,15 +1066,14 @@ void* GGPROTO::img_loadpicture(gg_event* e, wchar_t *szFileName) } // Load image from file else - dat->hBitmap = (HBITMAP)CallService(MS_IMG_LOAD, (WPARAM)szFileName, IMGL_WCHAR); + dat->hBitmap = Bitmap_Load(szFileName); // If everything is fine return the handle if (dat->hBitmap) return dat; debugLogA("img_loadpicture(): MS_IMG_LOAD(MEM) failed."); - if (dat) - { + if (dat) { free(dat->lpData); free(dat->lpszFileName); free(dat); -- cgit v1.2.3