From 42d1645b82ec32f4d09f707d467c533a8e0287cf Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 7 Mar 2014 10:43:40 -0500 Subject: [PATCH] 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. --- lib/diagnostics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/diagnostics.cpp b/lib/diagnostics.cpp index a0c79ba12d..e66815662c 100644 --- a/lib/diagnostics.cpp +++ b/lib/diagnostics.cpp @@ -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"));