aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-05-24 08:39:32 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-05-24 08:39:32 +0000
commita74fbbb42c390e797325135c1dd1b3d6b6deb6db (patch)
tree0c8db793685e23ce4975fabed351b70b5df8f452 /src
parente9882b3e41b62de9682db367a070439d1aa55475 (diff)
fixed compilation on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2547 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/compose.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compose.c b/src/compose.c
index 813b5649..ccb465db 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -6600,10 +6600,10 @@ static void compose_attach_open(Compose *compose)
}
#ifdef G_OS_WIN32
- if (g_file_test(filename, G_FILE_TEST_IS_EXECUTABLE) ||
- str_has_suffix_case(filename, ".scr") ||
- str_has_suffix_case(filename, ".pif") ||
- GetBinaryType(filename, &dwtype)) {
+ if (g_file_test(ainfo->file, G_FILE_TEST_IS_EXECUTABLE) ||
+ str_has_suffix_case(ainfo->file, ".scr") ||
+ str_has_suffix_case(ainfo->file, ".pif") ||
+ GetBinaryType(ainfo->file, &dwtype)) {
alertpanel_full
(_("Opening executable file"),
_("This is an executable file. Opening executable file is restricted for security.\n"