don't try to set the stream size before stream creation - makes the gdip

2009-03-27  Hans Breuer  <hans@breuer.org>

	* 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.


svn path=/branches/gtk-2-14/; revision=22591
This commit is contained in:
Hans Breuer
2009-03-27 13:33:09 +00:00
committed by Hans Breuer
parent 8777926359
commit 03de1d4c6f
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2009-03-27 Hans Breuer <hans@breuer.org>
* 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 <tml@iki.fi>
Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps

View File

@@ -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)