Andrew Talbot : cabinet: Mark some fall-throughs in switch statements.
Alexandre Julliard
julliard at winehq.org
Mon Sep 26 16:15:12 CDT 2011
Module: wine
Branch: master
Commit: 73e82bacc35cde8fcea7d93833ea98754fc8dae2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=73e82bacc35cde8fcea7d93833ea98754fc8dae2
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Sep 24 16:28:21 2011 +0100
cabinet: Mark some fall-throughs in switch statements.
---
dlls/cabinet/fci.c | 3 +++
dlls/cabinet/fdi.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c
index 8ea7c26..70d4f3f 100644
--- a/dlls/cabinet/fci.c
+++ b/dlls/cabinet/fci.c
@@ -466,10 +466,13 @@ static cab_ULONG fci_get_checksum( const void *pv, UINT cb, cab_ULONG seed )
switch (cb % 4) {
case 3:
ul |= (((ULONG)(*pb++)) << 16);
+ /* fall through */
case 2:
ul |= (((ULONG)(*pb++)) << 8);
+ /* fall through */
case 1:
ul |= *pb;
+ /* fall through */
default:
break;
}
diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index 04a6295..d091dbb 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -360,7 +360,9 @@ static cab_ULONG checksum(const cab_UBYTE *data, cab_UWORD bytes, cab_ULONG csum
switch (bytes & 3) {
case 3: ul |= *data++ << 16;
+ /* fall through */
case 2: ul |= *data++ << 8;
+ /* fall through */
case 1: ul |= *data;
}
csum ^= ul;
More information about the wine-cvs
mailing list