OLEPictureImpl_Load CreateIcon failed

Fabian Cenedese Cenedese at indel.ch
Tue Jan 27 04:45:21 CST 2004


Looks like I'm quite busy today... or just don't know anything about wine :)

I'm still on the VB SSTab problem as described here:


I looked further into this to find out what happens with this picture
stuff. I found out that it fails in this function (from olepicture.c):

 * OLEPictureImpl_IPersistStream_Load (IUnknown)
 * Loads the binary data from the IStream. Starts at current position.
 * Currently implemented: BITMAP, ICON, JPEG.
static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {

It first reads the picture size from the stream and reads the picture
properties and data. This works sometimes, I can see it creating
e.g. 32x32 pictures for icons. But in this error I have it always
fails due to the reported picture data size of zero. So it doesn't
read any picture properties from the stream and tries to create
a picture with 0x0 dimensions. Obviously this fails.
But now I can't find out where this comes from. What is this stream
where it wants to read data from? In what source file is this implemented?
The used IStream_Load is just a macro. What could have gone wrong
earlier that this picture size is now zero? Maybe the stream is ok but
wine wants to create more pictures than there are?

Thanks for any pointers.

bye  Fabi

More information about the wine-devel mailing list