summaryrefslogtreecommitdiff
path: root/plugins/KeyboardNotify/src/utils.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-08-18 09:58:04 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-08-18 09:58:04 +0000
commiteecb7724355bdb37e028f00fb3818ba65fcccd0e (patch)
tree142ef488e7f33c7775a10f2f4c81c345902ad4bf /plugins/KeyboardNotify/src/utils.cpp
parentab42b10aaf45c9c462806f38499aa332d3ca8fe8 (diff)
fix for the unicode profile path
git-svn-id: http://svn.miranda-ng.org/main/trunk@1494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/KeyboardNotify/src/utils.cpp')
-rw-r--r--plugins/KeyboardNotify/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/KeyboardNotify/src/utils.cpp b/plugins/KeyboardNotify/src/utils.cpp
index 12bd5e0722..eca9a17573 100644
--- a/plugins/KeyboardNotify/src/utils.cpp
+++ b/plugins/KeyboardNotify/src/utils.cpp
@@ -35,10 +35,10 @@ TCHAR *getAbsoluteProfileName(TCHAR *absoluteProfileName, size_t maxLen)
{
TCHAR profilePath[MAX_PATH+1], profileName[MAX_PATH+1];
- profilePath[0] = profileName[0] = L'\0';
- CallService(MS_DB_GETPROFILEPATH, MAX_PATH, (LPARAM)profilePath);
- CallService(MS_DB_GETPROFILENAME, MAX_PATH, (LPARAM)profileName);
- _snwprintf(absoluteProfileName, maxLen, L"%s\\%s", profilePath, profileName);
+ profilePath[0] = profileName[0] = '\0';
+ CallService(MS_DB_GETPROFILEPATHT, MAX_PATH, (LPARAM)profilePath);
+ CallService(MS_DB_GETPROFILENAMET, MAX_PATH, (LPARAM)profileName);
+ mir_sntprintf(absoluteProfileName, maxLen, _T("%s\\%s"), profilePath, profileName);
return absoluteProfileName;
}