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
d03b13c5
Commit
d03b13c5
authored
Dec 28, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Avoid signed-unsigned integer comparisons.
parent
93348b21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
fdi.c
dlls/cabinet/fdi.c
+5
-3
No files found.
dlls/cabinet/fdi.c
View file @
d03b13c5
...
...
@@ -2041,7 +2041,7 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
/* outlen=0 means this block was the last contiguous part
of a split block, continued in the next cabinet */
if
(
outlen
==
0
)
{
int
pathlen
,
filenamelen
,
i
;
int
pathlen
,
filenamelen
;
INT_PTR
cabhf
;
char
fullpath
[
MAX_PATH
],
userpath
[
256
];
FDINOTIFICATION
fdin
;
...
...
@@ -2056,6 +2056,8 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
/* set up the next decomp_state... */
if
(
!
(
cab
->
next
))
{
unsigned
int
i
;
if
(
!
cab
->
mii
.
hasnext
)
return
DECR_INPUT
;
if
(
!
((
cab
->
next
=
CAB
(
fdi
)
->
alloc
(
sizeof
(
fdi_decomp_state
)))))
...
...
@@ -2695,13 +2697,13 @@ BOOL __cdecl FDICopy(
/* find the folder for this file if necc. */
if
(
filehf
)
{
int
i2
;
fol
=
CAB
(
firstfol
);
if
((
file
->
index
&
cffileCONTINUED_TO_NEXT
)
==
cffileCONTINUED_TO_NEXT
)
{
/* pick the last folder */
while
(
fol
->
next
)
fol
=
fol
->
next
;
}
else
{
unsigned
int
i2
;
for
(
i2
=
0
;
(
i2
<
file
->
index
);
i2
++
)
if
(
fol
->
next
)
/* bug resistance, should always be true */
fol
=
fol
->
next
;
...
...
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