# HG changeset patch
# User Tim Ringenbach <marv@pidgin.im>
# Date 1090295177 0
# Node ID 8ba8477ca7b6104f97921b7b4207835d4b5d91a1
# Parent  80b3c9e31df4a0330dab2fbda65a3a4763eb368e
[gaim-migrate @ 10412]
wing and datallah say this fixes #994207

committer: Tailor Script <tailor@pidgin.im>

diff -r 80b3c9e31df4 -r 8ba8477ca7b6 src/protocols/msn/msn.c
--- a/src/protocols/msn/msn.c	Tue Jul 20 03:41:34 2004 +0000
+++ b/src/protocols/msn/msn.c	Tue Jul 20 03:46:17 2004 +0000
@@ -1517,6 +1517,8 @@
 	g_string_append(s, "</body></html>\n");
 
 #if PHOTO_SUPPORT
+	/* Find the URL to the photo; must be before the marshalling [Bug 994207] */
+	photo_url_text = msn_get_photo_url(url_text);
 
 	/* Marshall the existing state */
 	info2_data = g_malloc0(sizeof(MsnGetInfoStepTwoData));
@@ -1529,7 +1531,6 @@
 	info2_data->title = title;
 
 	/* Try to put the photo in there too, if there's one */
-	photo_url_text = msn_get_photo_url(url_text);
 	if (photo_url_text) {
 		gaim_url_fetch(photo_url_text, FALSE, NULL, FALSE, msn_got_photo,
 				info2_data);