summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac9a306)
raw | patch | inline | side by side (parent: ac9a306)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 12 Sep 2006 21:57:14 +0000 (21:57 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 12 Sep 2006 21:57:14 +0000 (21:57 +0000) |
src/extension/dependency.cpp | patch | blob | history |
index 473c6dc6269fc7f7543d9d8e9a6c18dd9de66cd9..109d5ed1211ab76d36d225666df8bc01f4276199 100644 (file)
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);