diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 91db660916..19be98c56b 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +2009-03-27 Hans Breuer + + * io-gdip-utils.c(gdip_buffer_to_bitmap) : don't try to set the stream + size before stream creation - makes the gdip backend good enough to + serve gdk-pixbuf-csource. + 2009-01-19 Tor Lillqvist Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps diff --git a/gdk-pixbuf/io-gdip-utils.c b/gdk-pixbuf/io-gdip-utils.c index 935372516b..f673ebbfa7 100644 --- a/gdk-pixbuf/io-gdip-utils.c +++ b/gdk-pixbuf/io-gdip-utils.c @@ -353,7 +353,6 @@ gdip_buffer_to_bitmap (const gchar *buffer, size_t size, GError **error) if (!hg) return NULL; - IStream_SetSize (stream, *(ULARGE_INTEGER *)&size64); hr = CreateStreamOnHGlobal (hg, FALSE, (LPSTREAM *)&stream); if (!SUCCEEDED (hr)) { @@ -361,7 +360,7 @@ gdip_buffer_to_bitmap (const gchar *buffer, size_t size, GError **error) GlobalFree (hg); return NULL; } - + IStream_SetSize (stream, *(ULARGE_INTEGER *)&size64); status = GdipCreateBitmapFromStream (stream, &bitmap); if (Ok != status)