- changed win32 to substitute $APPDATA for the current users app data folder instead of all users

This commit is contained in:
Mark Vejvoda
2011-03-27 16:08:20 +00:00
parent 0f915ae6a6
commit 472fc2989a

View File

@@ -110,7 +110,7 @@ bool Properties::applyTagsToValue(string &value) {
#ifdef WIN32 #ifdef WIN32
TCHAR szPath[MAX_PATH]=""; TCHAR szPath[MAX_PATH]="";
// Get path for each computer, non-user specific and non-roaming data. // Get path for each computer, non-user specific and non-roaming data.
if ( SUCCEEDED( SHGetFolderPath( NULL, CSIDL_COMMON_APPDATA, if ( SUCCEEDED( SHGetFolderPath( NULL, CSIDL_APPDATA,
NULL, 0, szPath))) { NULL, 0, szPath))) {
string appPath = szPath; string appPath = szPath;
replaceAll(value, "$APPDATA", appPath); replaceAll(value, "$APPDATA", appPath);