From 427891e0d28becb428ae8435954399f2e4daa9fe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Mar 2013 22:52:26 +0000 Subject: service call replaced with helper: MS_UTILS_PATHTOABSOLUTEW git-svn-id: http://svn.miranda-ng.org/main/trunk@3827 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/mir_icolib.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'plugins/SendScreenshotPlus/src') diff --git a/plugins/SendScreenshotPlus/src/mir_icolib.cpp b/plugins/SendScreenshotPlus/src/mir_icolib.cpp index 4255e2e461..5082fc80b8 100644 --- a/plugins/SendScreenshotPlus/src/mir_icolib.cpp +++ b/plugins/SendScreenshotPlus/src/mir_icolib.cpp @@ -101,13 +101,10 @@ LPTSTR IcoLib_GetDefaultIconFileName() }; TCHAR absolute[MAX_PATH]; - for (INT i = 0; i < SIZEOF(path); i++) - { - CallService(MS_UTILS_PATHTOABSOLUTET, (WPARAM)path[i], (LPARAM)absolute); - if (PathFileExists(absolute)) - { + for (INT i = 0; i < SIZEOF(path); i++) { + PathToAbsoluteT(path[i], absolute); + if ( PathFileExists(absolute)) return path[i]; - } } return NULL; } @@ -130,13 +127,10 @@ static VOID IcoLib_CheckIconPackVersion(LPTSTR szIconPack) if (szIconPack) { TCHAR szAbsolutePath[MAX_PATH]; - HMODULE hIconDll; + PathToAbsoluteT(szIconPack, szAbsolutePath); - CallService(MS_UTILS_PATHTOABSOLUTET, (WPARAM)szIconPack, (LPARAM)szAbsolutePath); - - hIconDll = LoadLibrary(szAbsolutePath); - if (hIconDll) - { + HMODULE hIconDll = LoadLibrary(szAbsolutePath); + if (hIconDll) { CHAR szFileVersion[64]; if (!LoadStringA(hIconDll, IDS_ICOPACKVERSION, szFileVersion, sizeof(szFileVersion)) || -- cgit v1.2.3