diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-26 18:59:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-26 18:59:51 +0300 |
commit | fe83051082d1509bd653b718f119f884646d20e5 (patch) | |
tree | 4d0214441d96d26cadab85b421e0921d999730b3 /protocols/Gadu-Gadu | |
parent | ee89703abd075cacb396d86bfdf7e1dd4ce9d4d1 (diff) |
MS_IMG_LOAD replaced with Bitmap_Load where possible
Diffstat (limited to 'protocols/Gadu-Gadu')
-rw-r--r-- | protocols/Gadu-Gadu/src/image.cpp | 5 |
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);
|