diff options
-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" |