From f51995e13679a37851baef8e7f52f2d993cbc7c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Sep 2016 17:11:58 +0000 Subject: mode old database junk to die git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Msg_Export/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Msg_Export') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 74bc251e71..6deb7aaccb 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -468,9 +468,9 @@ bool bReadMirandaDirAndPath() PathToAbsoluteW(L"miranda32.exe", tmp); sMirandaPath = tmp; sMirandaPath.erase(sMirandaPath.find_last_of(L"\\")); - CallService(MS_DB_GETPROFILEPATHW, (WPARAM)MAX_PATH - 1, (LPARAM)szDBPath); + Profile_GetPathW(MAX_PATH, szDBPath); sDBPath = szDBPath; - CallService(MS_DB_GETPROFILENAMEW, (WPARAM)MAX_PATH - 1, (LPARAM)szDBPath); + Profile_GetNameW(MAX_PATH, szDBPath); sDBPath.append(L"\\").append(szDBPath); sDBPath.erase(sDBPath.size() - 4); return true; @@ -1013,7 +1013,7 @@ void ExportDBEventInfo(MCONTACT hContact, DBEVENTINFO &dbei) switch (dbei.eventType) { case EVENTTYPE_MESSAGE: { - wchar_t *msg = DbGetEventTextW(&dbei, CP_ACP); + wchar_t *msg = DbEvent_GetTextW(&dbei, CP_ACP); if (!bWriteIndentedToFile(hFile, nIndent, msg, bWriteUTF8Format)) { DisplayErrorDialog(LPGENW("Failed to write message to the file :\n"), sFilePath, &dbei); } -- cgit v1.2.3