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
f525f182
Commit
f525f182
authored
Apr 18, 2005
by
Peter Berg Larsen
Committed by
Alexandre Julliard
Apr 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate a strncpy and remove unused variable.
parent
5a2591d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cabextract.c
dlls/cabinet/cabextract.c
+4
-4
No files found.
dlls/cabinet/cabextract.c
View file @
f525f182
...
...
@@ -2068,7 +2068,7 @@ struct cabinet *find_cabs_in_file(LPCSTR name, cab_UBYTE search_buf[])
*/
void
find_cabinet_file
(
char
**
cabname
,
LPCSTR
origcab
)
{
char
*
tail
,
*
cab
,
*
name
,
*
nextpart
,
nametmp
[
MAX_PATH
]
,
*
filepart
;
char
*
tail
,
*
cab
,
*
name
,
*
nextpart
,
nametmp
[
MAX_PATH
];
int
found
=
0
;
TRACE
(
"(*cabname == ^%p, origcab == %s)
\n
"
,
cabname
?
*
cabname
:
NULL
,
debugstr_a
(
origcab
));
...
...
@@ -2107,11 +2107,11 @@ void find_cabinet_file(char **cabname, LPCSTR origcab) {
nextpart
=
strchr
(
name
,
'\\'
);
if
(
nextpart
)
*
nextpart
=
'\0'
;
found
=
SearchPathA
(
cab
,
name
,
NULL
,
MAX_PATH
,
nametmp
,
&
filepart
);
found
=
SearchPathA
(
cab
,
name
,
NULL
,
MAX_PATH
,
nametmp
,
NULL
);
/* if the component was not found, look for it in the current dir */
if
(
!
found
)
{
found
=
SearchPathA
(
"."
,
name
,
NULL
,
MAX_PATH
,
nametmp
,
&
filepart
);
found
=
SearchPathA
(
"."
,
name
,
NULL
,
MAX_PATH
,
nametmp
,
NULL
);
}
if
(
found
)
...
...
@@ -2135,7 +2135,7 @@ void find_cabinet_file(char **cabname, LPCSTR origcab) {
if
(
found
)
{
free
((
void
*
)
*
cabname
);
*
cabname
=
cab
;
strn
cpy
(
cab
,
nametmp
,
found
+
1
);
mem
cpy
(
cab
,
nametmp
,
found
+
1
);
TRACE
(
"result: %s
\n
"
,
debugstr_a
(
cab
));
}
else
{
free
((
void
*
)
cab
);
...
...
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