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
b41c71e3
Commit
b41c71e3
authored
Jul 25, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Simplify the "pointer to start of array" idiom.
parent
d8bdd4cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
fdi.c
dlls/cabinet/fdi.c
+10
-10
No files found.
dlls/cabinet/fdi.c
View file @
b41c71e3
...
...
@@ -820,20 +820,20 @@ static int QTMfdi_init(int window, int level, fdi_decomp_state *decomp_state) {
/* initialize arithmetic coding models */
QTMfdi_initmodel
(
&
QTM
(
model7
),
&
QTM
(
m7sym
)[
0
]
,
7
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model7
),
QTM
(
m7sym
)
,
7
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model00
),
&
QTM
(
m00sym
)[
0
]
,
0x40
,
0x00
);
QTMfdi_initmodel
(
&
QTM
(
model40
),
&
QTM
(
m40sym
)[
0
]
,
0x40
,
0x40
);
QTMfdi_initmodel
(
&
QTM
(
model80
),
&
QTM
(
m80sym
)[
0
]
,
0x40
,
0x80
);
QTMfdi_initmodel
(
&
QTM
(
modelC0
),
&
QTM
(
mC0sym
)[
0
]
,
0x40
,
0xC0
);
QTMfdi_initmodel
(
&
QTM
(
model00
),
QTM
(
m00sym
)
,
0x40
,
0x00
);
QTMfdi_initmodel
(
&
QTM
(
model40
),
QTM
(
m40sym
)
,
0x40
,
0x40
);
QTMfdi_initmodel
(
&
QTM
(
model80
),
QTM
(
m80sym
)
,
0x40
,
0x80
);
QTMfdi_initmodel
(
&
QTM
(
modelC0
),
QTM
(
mC0sym
)
,
0x40
,
0xC0
);
/* model 4 depends on table size, ranges from 20 to 24 */
QTMfdi_initmodel
(
&
QTM
(
model4
),
&
QTM
(
m4sym
)[
0
]
,
(
msz
<
24
)
?
msz
:
24
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model4
),
QTM
(
m4sym
)
,
(
msz
<
24
)
?
msz
:
24
,
0
);
/* model 5 depends on table size, ranges from 20 to 36 */
QTMfdi_initmodel
(
&
QTM
(
model5
),
&
QTM
(
m5sym
)[
0
]
,
(
msz
<
36
)
?
msz
:
36
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model5
),
QTM
(
m5sym
)
,
(
msz
<
36
)
?
msz
:
36
,
0
);
/* model 6pos depends on table size, ranges from 20 to 42 */
QTMfdi_initmodel
(
&
QTM
(
model6pos
),
&
QTM
(
m6psym
)[
0
]
,
msz
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model6len
),
&
QTM
(
m6lsym
)[
0
]
,
27
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model6pos
),
QTM
(
m6psym
)
,
msz
,
0
);
QTMfdi_initmodel
(
&
QTM
(
model6len
),
QTM
(
m6lsym
)
,
27
,
0
);
return
DECR_OK
;
}
...
...
@@ -2082,7 +2082,7 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
ZeroMemory
(
&
fdin
,
sizeof
(
FDINOTIFICATION
));
fdin
.
psz1
=
(
cab
->
mii
.
nextname
)
?
cab
->
mii
.
nextname
:
&
emptystring
;
fdin
.
psz2
=
(
cab
->
mii
.
nextinfo
)
?
cab
->
mii
.
nextinfo
:
&
emptystring
;
fdin
.
psz3
=
&
userpath
[
0
]
;
fdin
.
psz3
=
userpath
;
fdin
.
fdie
=
FDIERROR_NONE
;
fdin
.
pv
=
pvUser
;
...
...
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