Index: libgnomeui/gnome-vfs-util.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-vfs-util.c,v
retrieving revision 1.20
diff -u -p -r1.20 gnome-vfs-util.c
--- libgnomeui/gnome-vfs-util.c	24 Jan 2006 15:14:38 -0000	1.20
+++ libgnomeui/gnome-vfs-util.c	5 Aug 2006 09:19:13 -0000
@@ -201,6 +202,10 @@ gnome_gdk_pixbuf_new_from_uri_at_scale (
 				      NULL)) {
 	    result = GNOME_VFS_ERROR_WRONG_FORMAT;
 	    break;
+	}
+
+	if (gdk_pixbuf_loader_get_pixbuf (loader) != NULL) {
+		break;
 	}
     }
 
