diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-03-28 05:44:13 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-03-28 05:44:13 +0200 |
commit | ca4f0a3741d9c86de2012a92c1e39e3a86a449af (patch) | |
tree | 6aaee804e3467b2e6414293034ba1b5bd7ddfe5e | |
parent | 3eed4aad889609bb46fcf55284e3af0129e31578 (diff) | |
download | kit-ca4f0a3741d9c86de2012a92c1e39e3a86a449af.zip |
[win32] AppData/Local test
-rw-r--r-- | source/kit/file.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/kit/file.c b/source/kit/file.c index 956c539..6edaee9 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -143,12 +143,9 @@ kit_string_t kit_path_cache(kit_allocator_t alloc) { kit_string_t cache, user; #if defined(_WIN32) && !defined(__CYGWIN__) - user = kit_get_env_("APPDATA", alloc); - if (user.size != 0) { - cache = kit_path_join(WRAP_STR(user), SZ("Local"), alloc); - DA_DESTROY(user); + cache = kit_get_env_("LOCALAPPDATA", alloc); + if (cache.size != 0) return cache; - } #endif #ifdef __APPLE__ |