OLEPictureImpl_Load: fix for headerless pictures

Kirill Smelkov kirr at landau.phys.spbu.ru
Tue Feb 3 12:40:49 CST 2004


On Tue, 3 Feb 2004, Fabian Cenedese wrote:

>
> >> >In my case there are lots of *.bmp (with picture) with exactly same header
> >> >i mentioned. Thus header[1]==0 doesnt imply 'there is no picture at all'
> >> >
> >> >This pictures came in ole storage taken from a real win32 app, and loading
> >> >them on windows works correctly.
> >>
> >> Do you have VB6? Can you create a testprogram? If not then I can send you one.
> >> Just create an empty form and place the SSTab on it (the one from tab control,
> >> not the one in the standard palette).
> >I don't have VB. In fact i ether dont have VC and windows installed at all
> >here.
> >
[snip]

> >> This fails on on my computer and I don't
> >> know how wine could detect if it's a headerless picture or no picture at all
> >> if they look the same (so far).
> >
> >Maybe check header[0] to be real .bmp or .gif magic and header[1] for
> >zero?
>
> I couldn't see a difference, always 0x746c in the first entry.

Then what type of picture it is?

0x4947	GIF
0xd8ff  JPEG
0x4d42  BMP
0x0000  ICON
0x746c  ???

Have you seen something like "Unknown magic, blah-blah-blah..."?

>
> bye   Fabi

--
	Kirill




More information about the wine-devel mailing list