Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
73e82bac
Commit
73e82bac
authored
Sep 24, 2011
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Mark some fall-throughs in switch statements.
parent
5f9e03d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
fci.c
dlls/cabinet/fci.c
+3
-0
fdi.c
dlls/cabinet/fdi.c
+2
-0
No files found.
dlls/cabinet/fci.c
View file @
73e82bac
...
@@ -466,10 +466,13 @@ static cab_ULONG fci_get_checksum( const void *pv, UINT cb, cab_ULONG seed )
...
@@ -466,10 +466,13 @@ static cab_ULONG fci_get_checksum( const void *pv, UINT cb, cab_ULONG seed )
switch
(
cb
%
4
)
{
switch
(
cb
%
4
)
{
case
3
:
case
3
:
ul
|=
(((
ULONG
)(
*
pb
++
))
<<
16
);
ul
|=
(((
ULONG
)(
*
pb
++
))
<<
16
);
/* fall through */
case
2
:
case
2
:
ul
|=
(((
ULONG
)(
*
pb
++
))
<<
8
);
ul
|=
(((
ULONG
)(
*
pb
++
))
<<
8
);
/* fall through */
case
1
:
case
1
:
ul
|=
*
pb
;
ul
|=
*
pb
;
/* fall through */
default:
default:
break
;
break
;
}
}
...
...
dlls/cabinet/fdi.c
View file @
73e82bac
...
@@ -360,7 +360,9 @@ static cab_ULONG checksum(const cab_UBYTE *data, cab_UWORD bytes, cab_ULONG csum
...
@@ -360,7 +360,9 @@ static cab_ULONG checksum(const cab_UBYTE *data, cab_UWORD bytes, cab_ULONG csum
switch
(
bytes
&
3
)
{
switch
(
bytes
&
3
)
{
case
3
:
ul
|=
*
data
++
<<
16
;
case
3
:
ul
|=
*
data
++
<<
16
;
/* fall through */
case
2
:
ul
|=
*
data
++
<<
8
;
case
2
:
ul
|=
*
data
++
<<
8
;
/* fall through */
case
1
:
ul
|=
*
data
;
case
1
:
ul
|=
*
data
;
}
}
csum
^=
ul
;
csum
^=
ul
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment