summaryrefslogtreecommitdiff
path: root/plugins/YAMN
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAMN')
-rw-r--r--plugins/YAMN/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/YAMN/src/main.cpp b/plugins/YAMN/src/main.cpp
index 251ba8ca03..33498fe920 100644
--- a/plugins/YAMN/src/main.cpp
+++ b/plugins/YAMN/src/main.cpp
@@ -62,7 +62,7 @@ static void GetProfileDirectory(wchar_t *szPath, int cbPath)
//This is copied from Miranda's sources. In 0.2.1.0 it is needed, in newer vesions of Miranda use MS_DB_GETPROFILEPATH service
{
wchar_t tszOldPath[MAX_PATH];
- CallService(MS_DB_GETPROFILEPATHW, _countof(tszOldPath), (LPARAM)tszOldPath);
+ Profile_GetPathW(_countof(tszOldPath), tszOldPath);
mir_wstrcat(tszOldPath, L"\\*.book");
VARSW ptszNewPath( L"%miranda_userdata%");
@@ -268,7 +268,7 @@ extern "C" int __declspec(dllexport) Load(void)
PathToAbsoluteW( L".", szMirandaDir);
// retrieve the current profile name
- CallService(MS_DB_GETPROFILENAMEW, (WPARAM)_countof(ProfileName), (LPARAM)ProfileName); //not to pass entire array to fcn
+ Profile_GetNameW(_countof(ProfileName), ProfileName);
wchar_t *fc = wcsrchr(ProfileName, '.');
if ( fc != NULL ) *fc = 0;