diff options
Diffstat (limited to 'plugins/UserInfoEx/src/mir_icolib.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/mir_icolib.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/plugins/UserInfoEx/src/mir_icolib.cpp b/plugins/UserInfoEx/src/mir_icolib.cpp index 2b77314895..1cc6a5c59a 100644 --- a/plugins/UserInfoEx/src/mir_icolib.cpp +++ b/plugins/UserInfoEx/src/mir_icolib.cpp @@ -140,13 +140,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;
}
@@ -167,12 +164,10 @@ static VOID IcoLib_CheckIconPackVersion(LPTSTR szIconPack) {
if (szIconPack)
{
- TCHAR szAbsolutePath[MAX_PATH];
- HMODULE hIconDll;
-
- CallService(MS_UTILS_PATHTOABSOLUTET, (WPARAM)szIconPack, (LPARAM)szAbsolutePath);
+ TCHAR szAbsolutePath[MAX_PATH];
+ PathToAbsoluteT(szIconPack, szAbsolutePath);
- hIconDll = LoadLibrary(szAbsolutePath);
+ HMODULE hIconDll = LoadLibrary(szAbsolutePath);
if (hIconDll)
{
CHAR szFileVersion[64];
|