aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-15 07:48:29 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-15 07:48:29 +0000
commitdef93bc442e25ecec02ac51ea25431055fbfc458 (patch)
treea1d9cbfa0fe91d5298e6fde8a62e85941890b1b8 /src
parente10f153386f8ce71f4ee480424df53b66e838b02 (diff)
win32: the method of detecting executables was modified.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@746 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/mimeview.c6
1 files changed, 1 insertions, 5 deletions
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"),