windowscodecs: find_decoder() should return an error it received from the decoder.
commit957d1097d28d0b02a79b2b56c94ac3fd21ff6e88
authorDmitry Timoshkov <dmitry@baikal.ru>
Fri, 30 Nov 2018 06:53:23 +0000 (30 09:53 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 4 Dec 2018 22:27:42 +0000 (4 23:27 +0100)
tree6128956aaf25c8060e1f2863fabeb8a634b7027b
parent5a4f5ce8b4e2dd7a9597f8b94b2e58c0b37fd81f
windowscodecs: find_decoder() should return an error it received from the decoder.

If IWICBitmapDecoderInfo::MatchesPattern() has recognized the decoder by the pattern,
and the called IWICBitmapDecoder::Initialize() has failed, an error should be returned
right away instead of trying next codec. This allows report image format related errors
instead of WINCODEC_ERR_COMPONENTNOTFOUND.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/windowscodecs/imgfactory.c