summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/path-win.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/osdep/path-win.c b/osdep/path-win.c
index d89adc755e..2b1e8b5144 100644
--- a/osdep/path-win.c
+++ b/osdep/path-win.c
@@ -59,7 +59,11 @@ char *mp_get_win_config_path(const char *filename)
res = mp_path_join(NULL, bstr0(temp), bstr0(filename));
if (!mp_path_exists(res) || mp_path_isdir(res)) {
talloc_free(res);
- res = NULL;
+ res = mp_path_join(NULL, bstr0(dir), bstr0(filename));
+ if (!mp_path_exists(res) || mp_path_isdir(res)) {
+ talloc_free(res);
+ res = NULL;
+ }
}
}