Marcus Meissner marcus@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.