From def93bc442e25ecec02ac51ea25431055fbfc458 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 15 Nov 2005 07:48:29 +0000 Subject: win32: the method of detecting executables was modified. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@746 ee746299-78ed-0310-b773-934348b2243d --- src/mimeview.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/mimeview.c') diff --git a/src/mimeview.c b/src/mimeview.c index b70b775b..a23c058b 100644 --- a/src/mimeview.c +++ b/src/mimeview.c @@ -1123,13 +1123,9 @@ static void mimeview_view_file(const gchar *filename, MimeInfo *partinfo, if (!cmdline) { DWORD dwtype; - if (str_has_suffix_case(filename, ".exe") || - str_has_suffix_case(filename, ".com") || + if (g_file_test(filename, G_FILE_TEST_IS_EXECUTABLE) || str_has_suffix_case(filename, ".scr") || str_has_suffix_case(filename, ".pif") || - str_has_suffix_case(filename, ".bat") || - str_has_suffix_case(filename, ".vbs") || - str_has_suffix_case(filename, ".js") || GetBinaryType(filename, &dwtype)) { alertpanel_full (_("Opening executable file"), -- cgit v1.2.3