mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Move app data from %PROGRAMDATA% to %LOCALAPPDATA%
PiperOrigin-RevId: 513355549
This commit is contained in:
@@ -387,7 +387,7 @@ std::optional<std::filesystem::path> DeviceInfo::GetTemporaryPath() const {
|
||||
|
||||
std::optional<std::filesystem::path> DeviceInfo::GetLogPath() const {
|
||||
PWSTR path;
|
||||
HRESULT result = SHGetKnownFolderPath(FOLDERID_ProgramData, KF_FLAG_DEFAULT,
|
||||
HRESULT result = SHGetKnownFolderPath(FOLDERID_LocalAppData, KF_FLAG_DEFAULT,
|
||||
/*hToken=*/nullptr, &path);
|
||||
if (result == S_OK) {
|
||||
std::filesystem::path prefixPath = path;
|
||||
|
||||
Reference in New Issue
Block a user