summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-26 18:59:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-26 18:59:51 +0300
commitfe83051082d1509bd653b718f119f884646d20e5 (patch)
tree4d0214441d96d26cadab85b421e0921d999730b3 /protocols/Gadu-Gadu
parentee89703abd075cacb396d86bfdf7e1dd4ce9d4d1 (diff)
MS_IMG_LOAD replaced with Bitmap_Load where possible
Diffstat (limited to 'protocols/Gadu-Gadu')
-rw-r--r--protocols/Gadu-Gadu/src/image.cpp5
1 files changed, 2 insertions, 3 deletions
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);