commit a0524fc58f9c5aa54fca049bbc4e08bd558363bd
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Tue Feb 23 15:31:45 2021 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Tue Feb 23 15:31:45 2021 +0100
save config in executable directory on Windows
Fixes #1351
---
src/m_config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/m_config.c b/src/m_config.c
index 7c44fc58..20a886e7 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2291,7 +2291,7 @@ static char *GetDefaultConfigDir(void)
return copy;
}
#endif /* #ifndef _WIN32 */
- return M_StringDuplicate("");
+ return M_DirName(myargv[0]);
}
//