mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
cabinet: Mark some fall-throughs in switch statements.
This commit is contained in:
parent
5f9e03d118
commit
73e82bacc3
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue