Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
40460754
Commit
40460754
authored
May 13, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
May 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Remove order-of-evaluation dependencies.
parent
c72f318a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fdi.c
dlls/cabinet/fdi.c
+5
-2
No files found.
dlls/cabinet/fdi.c
View file @
40460754
...
@@ -1034,7 +1034,8 @@ struct Ziphuft **t, cab_LONG *m, fdi_decomp_state *decomp_state)
...
@@ -1034,7 +1034,8 @@ struct Ziphuft **t, cab_LONG *m, fdi_decomp_state *decomp_state)
w
+=
l
[
h
++
];
/* add bits already decoded */
w
+=
l
[
h
++
];
/* add bits already decoded */
/* compute minimum size table less than or equal to *m bits */
/* compute minimum size table less than or equal to *m bits */
z
=
(
z
=
g
-
w
)
>
(
cab_ULONG
)
*
m
?
*
m
:
z
;
/* upper limit */
if
((
z
=
g
-
w
)
>
(
cab_ULONG
)
*
m
)
/* upper limit */
z
=
*
m
;
if
((
f
=
1
<<
(
j
=
k
-
w
))
>
a
+
1
)
/* try a k-w bit table */
if
((
f
=
1
<<
(
j
=
k
-
w
))
>
a
+
1
)
/* try a k-w bit table */
{
/* too few codes for k-w bit table */
{
/* too few codes for k-w bit table */
f
-=
a
+
1
;
/* deduct codes from patterns left */
f
-=
a
+
1
;
/* deduct codes from patterns left */
...
@@ -1177,7 +1178,9 @@ static cab_LONG fdi_Zipinflate_codes(const struct Ziphuft *tl, const struct Ziph
...
@@ -1177,7 +1178,9 @@ static cab_LONG fdi_Zipinflate_codes(const struct Ziphuft *tl, const struct Ziph
ZIPDUMPBITS
(
e
)
ZIPDUMPBITS
(
e
)
do
do
{
{
n
-=
(
e
=
(
e
=
ZIPWSIZE
-
((
d
&=
ZIPWSIZE
-
1
)
>
w
?
d
:
w
))
>
n
?
n
:
e
);
d
=
max
(
d
&
(
ZIPWSIZE
-
1
),
w
);
e
=
min
(
ZIPWSIZE
-
d
,
n
);
n
-=
e
;
do
do
{
{
CAB
(
outbuf
)[
w
++
]
=
CAB
(
outbuf
)[
d
++
];
CAB
(
outbuf
)[
w
++
]
=
CAB
(
outbuf
)[
d
++
];
...
...
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