summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp')
-rw-r--r--plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp b/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
index c00751dabe..132d5b4107 100644
--- a/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
+++ b/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
@@ -234,19 +234,17 @@ static VOID GetInitialDir(LPSTR pszInitialDir)
// is some standard path defined
if (!DB::Setting::GetStatic(0, MODNAME, "vCardPath", szRelative, SIZEOF(szRelative))) {
- if (!CallService(MS_UTILS_PATHTOABSOLUTE, (WPARAM)szRelative, (WPARAM)pszInitialDir))
+ if ( !PathToAbsolute(szRelative, pszInitialDir))
strcpy(pszInitialDir, szRelative);
}
else if (//try to use environment variables supported by pathpatch of db3xSA
!ServiceExists(MS_DB_GETPROFILEPATH_BASIC) ||
- !CallService(MS_UTILS_PATHTOABSOLUTE, (WPARAM)PROFILEPATH "\\" PROFILENAME, (WPARAM)pszInitialDir)
- ) {
+ !PathToAbsolute(PROFILEPATH "\\" PROFILENAME, pszInitialDir)) {
// use standard path to absolute
- if (!CallService(MS_UTILS_PATHTOABSOLUTE, (WPARAM)"", (WPARAM)pszInitialDir))
+ if ( !PathToAbsolute("", pszInitialDir))
*pszInitialDir = 0;
}
- else
- *pszInitialDir = 0;
+ else *pszInitialDir = 0;
}
/**