changeset 4462:ff6c275a57d4

[gaim-migrate @ 4737] Open mail fix for win32 committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Wed, 29 Jan 2003 17:21:49 +0000
parents 75ff69e592cc
children c22bbfd75fd6
files src/protocols/msn/msn.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Wed Jan 29 17:20:57 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed Jan 29 17:21:49 2003 +0000
@@ -1507,6 +1507,19 @@
 				unlink(md->passport);
 				g_free(md->passport);
 			}
+#ifdef _WIN32
+			else {
+				/* Renaming file with .html extension, so that win32 open_url will work */
+				char* tmp;
+				if((tmp=g_strdup_printf("%s.html", md->passport)) != NULL) {
+					if(rename(md->passport, tmp) == 0) {
+						g_free(md->passport);
+						md->passport = tmp;
+					} else
+						g_free(tmp);
+				}
+			}
+#endif
 		}
 	} else if (!g_strncasecmp(buf, "SYN", 3)) {
 	} else if (!g_strncasecmp(buf, "USR", 3)) {