diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-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);
|