Re: gdiplus: Add a test to show that GdipCloneImage is not supposed to increase refcount of the source image stream, but clone it instead.
June 28, 2012
9:38 p.m.
I think it's most likely not keeping the input stream in the new image at all. It's probably also worth testing SelectActiveFrame, GetPropertyItem, and GetImageRawFormat with clones of images. Maybe they don't work.
June 2012
9:57 p.m.
New subject: gdiplus: Add a test to show that GdipCloneImage is not supposed to increase refcount of the source image stream, but clone it instead.
Vincent Povirk <madewokherd(a)gmail.com> wrote:
I think it's most likely not keeping the input stream in the new image at all.
It's probably also worth testing SelectActiveFrame, GetPropertyItem, and GetImageRawFormat with clones of images. Maybe they don't work.
A quick test shows that SelectActiveFrame called on a clone of a multiframe gif image succeeds under nt4 and win2k, but fails under all later gdiplus implementations. Looks like a clone does not really clone anything. -- Dmitry.
5017
Age (days ago)
5017
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Timoshkov -
Vincent Povirk