diff options
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)
|