Compare commits

...

1 Commits

Author SHA1 Message Date
4d2b88d0e7 fix: windows roaming path should also be applied to USERPROFILE
done from mobile
2025-09-17 17:12:45 +02:00

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 */