[PATCH 4/7] d3dx9_36: Implement D3DXGetImageInfoFromFileInMemory using WindowsCodecs (based on work from Tony Wasserka)

Vincent Povirk madewokherd+8cd9 at gmail.com
Mon Apr 5 10:10:18 CDT 2010


> +    CoUninitialize();

You should call this function only if your original CoInitializeEx
call succeeded. It may fail in a multithreaded apartment (in which
case WIC won't work either, but that's a bug), and in that case the
uninitialize is not needed.

Also, you seem to be leaving things uninitialized if you get an
unrecognized container format or pixel format. That's probably not a
good policy.



More information about the wine-devel mailing list