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/FlashAvatars/src/cflash.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'plugins/FlashAvatars/src/cflash.cpp') diff --git a/plugins/FlashAvatars/src/cflash.cpp b/plugins/FlashAvatars/src/cflash.cpp index 00c1226331..f571a4ac7c 100644 --- a/plugins/FlashAvatars/src/cflash.cpp +++ b/plugins/FlashAvatars/src/cflash.cpp @@ -174,9 +174,10 @@ static void __cdecl loadFlash_Thread(void *p) { TCHAR *tmpPath = Utils_ReplaceVarsT(_T("%miranda_avatarcache%")); mir_sntprintf(path, MAX_PATH, _T("%s\\%s"), tmpPath, _T("Flash")); mir_free(tmpPath); - } else - CallService(MS_UTILS_PATHTOABSOLUTET, (WPARAM)(_T("Flash")), (LPARAM)path); - } else { + } + else PathToAbsoluteT( _T("Flash"), path); + } + else { if(_tcslen(path) && path[_tcslen(path)-1]=='\\') path[_tcslen(path)-1] = 0; } @@ -600,11 +601,11 @@ static int systemModulesLoaded(WPARAM /*wParam*/, LPARAM /*lParam*/) TCHAR *tmpPath = Utils_ReplaceVarsT(_T("%miranda_avatarcache%")); mir_sntprintf(path, MAX_PATH, _T("%s\\%s\\"), tmpPath, _T("Flash")); mir_free(tmpPath); - } // default for older Mirandas - else - CallService(MS_UTILS_PATHTOABSOLUTET, (WPARAM)(_T("Flash\\")), (LPARAM)path); - hAvatarsFolder = FoldersRegisterCustomPathT("Flash Avatars", "Avatars Cache", path); + } + // default for older Mirandas + else PathToAbsoluteT( _T("Flash\\"), path); + hAvatarsFolder = FoldersRegisterCustomPathT("Flash Avatars", "Avatars Cache", path); return 0; } -- cgit v1.2.3