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/KeyboardNotify/src/utils.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/KeyboardNotify') diff --git a/plugins/KeyboardNotify/src/utils.cpp b/plugins/KeyboardNotify/src/utils.cpp index 1c4920c876..399ecafe31 100644 --- a/plugins/KeyboardNotify/src/utils.cpp +++ b/plugins/KeyboardNotify/src/utils.cpp @@ -34,11 +34,9 @@ char *fmtDBSettingName(const char *fmt, ...) wchar_t *getAbsoluteProfileName(wchar_t *absoluteProfileName, size_t maxLen) { wchar_t profilePath[MAX_PATH+1], profileName[MAX_PATH+1]; + Profile_GetPathW(MAX_PATH, profilePath); + Profile_GetNameW(MAX_PATH, profileName); - profilePath[0] = profileName[0] = '\0'; - CallService(MS_DB_GETPROFILEPATHW, MAX_PATH, (LPARAM)profilePath); - CallService(MS_DB_GETPROFILENAMEW, MAX_PATH, (LPARAM)profileName); mir_snwprintf(absoluteProfileName, maxLen, L"%s\\%s", profilePath, profileName); - return absoluteProfileName; } -- cgit v1.2.3