fix: windows roaming path should also be applied to USERPROFILE

done from mobile
This commit is contained in:
2025-09-17 17:12:45 +02:00
committed by GitHub
parent 47d34b3f7d
commit 4d2b88d0e7

View File

@@ -116,7 +116,7 @@ void test_conf_getpat(void) {
/* test with setting USERPROFILE */
_putenv("USERPROFILE=C:\\Users\\test");
path = conf_getpat("\\mypath");
assert_true(path != NULL && strcmp(path, "C:\\Users\\test\\mypath") == 0);
assert_true(path != NULL && strcmp(path, "C:\\Users\\test\\AppData\\Roaming\\mypath") == 0);
free(path);
/* test with setting APPDATA */