From 7cc346bf8dd955fd98e2c6b92225bb28487f15ca Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 12 Sep 2006 21:57:14 +0000 Subject: [PATCH] Extension dependency-check now also finds win32 executables if ".exe" is omitted in inx-file. --- src/extension/dependency.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/extension/dependency.cpp b/src/extension/dependency.cpp index 473c6dc62..109d5ed12 100644 --- a/src/extension/dependency.cpp +++ b/src/extension/dependency.cpp @@ -212,8 +212,17 @@ Dependency::check (void) const g_free(orig_path); return TRUE; } + // give it a 2nd try with ".exe" added + gchar * final_name_exe = g_strdup_printf ("%s.exe", final_name); + if (Glib::file_test(final_name_exe, filetest)) { + g_free(final_name); + g_free(final_name_exe); + g_free(orig_path); + return TRUE; + } g_free(final_name); + g_free(final_name_exe); } g_free(orig_path); -- 2.30.2