gdiplus: Implement GdipLoadImageFromFile
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Feb 23 23:41:41 CST 2008
"Nathan Beckmann" <nathan.beckmann at gmail.com> wrote:
> stat = GdipCreateBitmapFromStream(stream, bitmap);
>
> - if(!stat)
> + if(stream)
> IStream_Release(stream);
The 'if' check above is not needed, GdipCreateStreamOnFile returns
a status which is already checked.
> + stat = GdipCreateStreamOnFile(filename, GENERIC_READ, &stream);
> +
> + if (stat != Ok)
> + return stat;
> +
> + stat = GdipLoadImageFromStream(stream, image);
> +
> + if (stream)
> + IStream_Release(stream);
Same thing here.
--
Dmitry.
More information about the wine-devel
mailing list