summaryrefslogtreecommitdiff
path: root/plugins/KeyboardNotify/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-13 17:11:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-13 17:11:58 +0000
commitf51995e13679a37851baef8e7f52f2d993cbc7c1 (patch)
tree25ccd03cf2dc4b897cc0dc6fcbe4cc78ddb122c7 /plugins/KeyboardNotify/src
parentfe1e8456d2488095f409a4f2d38b7251abdedccf (diff)
mode old database junk to die
git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/KeyboardNotify/src')
-rw-r--r--plugins/KeyboardNotify/src/utils.cpp6
1 files changed, 2 insertions, 4 deletions
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;
}