Commit 3db77ce5 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Return a NULL bitmap when GdipCreateBitmapFromScan0 fails.

parent abbf38cc
......@@ -549,6 +549,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
ERR("could not make stream\n");
GdipFree(*bitmap);
GdipFree(buff);
*bitmap = NULL;
return GenericError;
}
......@@ -558,6 +559,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
IStream_Release(stream);
GdipFree(*bitmap);
GdipFree(buff);
*bitmap = NULL;
return GenericError;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment