RESUBMIT: olepicture loading from streams without Stat

Alexandre Julliard julliard at winehq.org
Fri Nov 4 06:56:21 CST 2005


Marcus Meissner <marcus at jet.franken.de> writes:

> Hi,
>
> Third submission... Should I change anything? Make it cleaner?
>
> Sample app is in http://bugs.winehq.org/show_bug.cgi?id=2683
>
> Ciao, Marcus
>
> Changelog:
> 	Implemented OLEPicture loading from IStreams that do 
> 	not support IStream::Stat().
> 	Added testcase for this behaviour.

You need to allocate a larger buffer, and grow it by doubling the size
or something like that. Reallocating every 4096 bytes is going to be
very slow on large files. Also you shouldn't use ntdll functions in
the tests.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list