diff options
Diffstat (limited to 'plugins/KeyboardNotify/src/utils.cpp')
| -rw-r--r-- | plugins/KeyboardNotify/src/utils.cpp | 8 | 
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;
  }
  | 
