From eecb7724355bdb37e028f00fb3818ba65fcccd0e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 18 Aug 2012 09:58:04 +0000 Subject: fix for the unicode profile path git-svn-id: http://svn.miranda-ng.org/main/trunk@1494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/KeyboardNotify/src/utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/KeyboardNotify') 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; } -- cgit v1.2.3