LIB: Store the per-user log files in the local profile area instead of the roaming area. We do not need to copy the log files back up to a home directory server when roaming profiles are used.

This commit is contained in:
Rom Walton 2014-03-07 10:43:40 -05:00
parent 0d7909a3f9
commit 42d1645b82
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ int diagnostics_init(
char user_dir[MAXPATHLEN];
#if defined(_WIN32)
snprintf(user_dir, sizeof(user_dir), "%s", getenv("APPDATA"));
snprintf(user_dir, sizeof(user_dir), "%s", getenv("LOCALAPPDATA"));
strncat(user_dir, "/BOINC", sizeof(user_dir) - strlen(user_dir)-1);
#elif defined(__APPLE__)
snprintf(user_dir, sizeof(user_dir), "%s", getenv("HOME"));