diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-05-24 08:39:32 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-05-24 08:39:32 +0000 |
commit | a74fbbb42c390e797325135c1dd1b3d6b6deb6db (patch) | |
tree | 0c8db793685e23ce4975fabed351b70b5df8f452 | |
parent | e9882b3e41b62de9682db367a070439d1aa55475 (diff) |
fixed compilation on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2547 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/compose.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,9 @@ 2010-05-24 + * src/compose.c: compose_attach_open(): fixed compilation on win32. + +2010-05-24 + * src/inc.c: fixed crash when clicking tray icon menu 'Get from current account' with no account. 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" |