[PATCH v6 2/5] windowscodecs: In find_decoder(), get rid of nested if by using goto, and use IWICWineDecoder_Initialize() to initialize decoders.

Ziqing Hui zhui at codeweavers.com
Wed Jul 15 09:00:55 CDT 2020


Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---

v6: * Move declaration for decoderinfo and wine_decoder inside the loop. 
    * Remove label "end".
    * Remove the NULL checking for the release of enumdecoders and unkdecoderinfo because we know that they must have been successfully created.

unkdecoderinfo is not able to be moved inside because it is used in the loop condition.

 dlls/windowscodecs/imgfactory.c | 100 ++++++++++++++++----------------
 1 file changed, 49 insertions(+), 51 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-windowscodecs-In-find_decoder-get-rid-of-nested-if-b.patch
Type: text/x-patch
Size: 4871 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200715/7a11708c/attachment.bin>


More information about the wine-devel mailing list