diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-11-05 13:35:28 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-11-05 13:35:28 +0100 |
commit | 2406e37ebe06d564a81b7ead8a56ffd8716b3ad4 (patch) | |
tree | 05ad23965c76f105246c8715b6544dfdf3be8434 | |
parent | 9cce7d263ea3f2984a619cdfcb54d264c6a4c51d (diff) | |
download | sciteco-2406e37ebe06d564a81b7ead8a56ffd8716b3ad4.tar.gz |
fixup: fixed Windows builds
-rw-r--r-- | src/file-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file-utils.c b/src/file-utils.c index b7e5418..82df599 100644 --- a/src/file-utils.c +++ b/src/file-utils.c @@ -190,7 +190,7 @@ gchar * teco_file_get_program_path(void) { TCHAR buf[MAX_PATH]; - if (!GetModuleFileNameW(NULL, buf, G_N_ELEMENTS(buf)) + if (!GetModuleFileNameW(NULL, buf, G_N_ELEMENTS(buf))) return g_get_current_dir(); g_autofree gchar *exe = g_utf16_to_utf8(buf, -1, NULL, NULL, NULL); return g_path_get_dirname(exe); |