Re: gdiplus: Implement GdipLoadImageFromFile
24 Feb
2008
24 Feb
'08
5:41 a.m.
"Nathan Beckmann" <nathan.beckmann(a)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.
6504
Age (days ago)
6504
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov