+ hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); + if (FAILED(hr)) + return E_FAIL;
You should continue in this case, but don't call CoUninitialize at the end.
On Mon, Apr 5, 2010 at 1:28 PM, Christian Costa titan.costa@wanadoo.fr wrote:
-- Check return of CoInitializeEx and some WIC calls. Return an error for unsupported file and pixel formats.
dlls/d3dx9_36/Makefile.in | 2 - dlls/d3dx9_36/surface.c | 113 ++++++++++++++++++++++++++++++++++++++++- dlls/d3dx9_36/tests/texture.c | 40 ++++++--------- 3 files changed, 127 insertions(+), 28 deletions(-)