http://bugs.winehq.org/show_bug.cgi?id=33384
--- Comment #12 from Anastasius Focht focht@gmx.net 2013-04-16 02:01:06 CDT --- Hello Dmitry,
your patch is obviously better to work with, thanks ;-)
--- quote --- Unhandled Exception: System.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation. --- quote ---
The exception is thrown when no suitable pixelformat has been found in IMILBitmapImpl_GetPixelFormat(). MIL substracts 1 from the returned pixelformat enum value and checks against [0..max-1] pixelformat enum range. If the default value "don't care" (=0) is returned it becomes negative. This seems reasonable as it needs a specific format for further operations.
--- snip --- if (IsEqualIID(&pixel_fmt_map[i].WIC_format, &This->pixelformat)) --- snip ---
Both params are REFGUID. This works for me and the correct pixelformat 15 (GUID_WICPixelFormat32bppBGRA) is returned:
--- snip --- if (IsEqualGUID(pixel_fmt_map[i].WIC_format, &This->pixelformat)) ... --- snip ---
Anyway it ends at the same place where I currently stay.
Regards