Andrew Talbot : windowscodecs: Mark some fall-throughs in switch statements .

Alexandre Julliard julliard at winehq.org
Tue Oct 11 14:03:38 CDT 2011


Module: wine
Branch: master
Commit: 2e27be37c3b8c8bd09e4c1779be925505df2728f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2e27be37c3b8c8bd09e4c1779be925505df2728f

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Oct 10 22:47:15 2011 +0100

windowscodecs: Mark some fall-throughs in switch statements.

---

 dlls/windowscodecs/pngformat.c  |    1 +
 dlls/windowscodecs/tiffformat.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index b3d92fd..c7c3cab 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -364,6 +364,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
     case PNG_COLOR_TYPE_GRAY_ALPHA:
         /* WIC does not support grayscale alpha formats so use RGBA */
         ppng_set_gray_to_rgb(This->png_ptr);
+        /* fall through */
     case PNG_COLOR_TYPE_RGB_ALPHA:
         This->bpp = bit_depth * 4;
         switch (bit_depth)
diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c
index 6422b62..79e5c60 100644
--- a/dlls/windowscodecs/tiffformat.c
+++ b/dlls/windowscodecs/tiffformat.c
@@ -295,6 +295,7 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
     {
     case 0: /* WhiteIsZero */
         decode_info->invert_grayscale = 1;
+        /* fall through */
     case 1: /* BlackIsZero */
         if (samples != 1)
         {




More information about the wine-cvs mailing list