diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-18 19:38:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-18 19:38:32 +0000 |
commit | 32ff8ca3f49a2b39782e268ea4b954916c597975 (patch) | |
tree | cc24ddba754b35c84464f58a93bafb0e510c194a /plugins/TipperYM/bitmap_func.cpp | |
parent | 3c4186d203440de9d2dda6e891f65ce69a9c2cc1 (diff) |
more correct version of fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@52 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/bitmap_func.cpp')
-rw-r--r-- | plugins/TipperYM/bitmap_func.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TipperYM/bitmap_func.cpp b/plugins/TipperYM/bitmap_func.cpp index 40bcf38fc9..0a33c7b1d8 100644 --- a/plugins/TipperYM/bitmap_func.cpp +++ b/plugins/TipperYM/bitmap_func.cpp @@ -181,12 +181,13 @@ void CreateFromBitmaps(bool bServiceTip) if (i == SKIN_ITEM_SIDEBAR && (!opt.iSidebarWidth || bServiceTip))
continue;
- if (opt.szImgFile[i] && opt.szImgFile[i] != 0)
+ TCHAR* tszFileName = opt.szImgFile[i];
+ if (tszFileName && *tszFileName != 0)
{
FIBITMAP *fib = NULL;
if (!skin.bCached)
{
- FIBITMAP *fibLoad = (FIBITMAP *)CallService(MS_IMG_LOAD, (WPARAM)opt.szImgFile[i], (LPARAM)IMGL_RETURNDIB);
+ FIBITMAP *fibLoad = (FIBITMAP *)CallService(MS_IMG_LOAD, (WPARAM)tszFileName, (LPARAM)(IMGL_TCHAR | IMGL_RETURNDIB));
if (!fibLoad) continue;
if (fii->FI_GetBPP(fibLoad) != 32)
|