[Bug 33384] Basic WPF applications using .NET 3.5 WPF fails to handle images (windowscodecs {7543696a-bc8d-46b0-5f81-8d95728972be} = IMILBitmapSource unsupported)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 16 02:01:06 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=33384

--- Comment #12 from Anastasius Focht <focht at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list