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
0806f9a4
Commit
0806f9a4
authored
Jun 14, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Avoid a superflous null check (Coverity).
parent
034c2cb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
res32.c
tools/winebuild/res32.c
+6
-7
No files found.
tools/winebuild/res32.c
View file @
0806f9a4
...
...
@@ -626,6 +626,7 @@ void output_res_o_file( DLLSPEC *spec )
unsigned
int
i
;
char
*
res_file
=
NULL
;
int
fd
;
struct
strarray
*
args
;
if
(
!
spec
->
nb_resources
)
fatal_error
(
"--resources mode needs at least one resource file as input
\n
"
);
if
(
!
output_file_name
)
fatal_error
(
"No output file name specified
\n
"
);
...
...
@@ -681,12 +682,10 @@ void output_res_o_file( DLLSPEC *spec )
close
(
fd
);
free
(
output_buffer
);
if
(
res_file
)
{
struct
strarray
*
args
=
strarray_init
();
strarray_add
(
args
,
find_tool
(
"windres"
,
NULL
),
"-i"
,
res_file
,
"-o"
,
output_file_name
,
NULL
);
spawn
(
args
);
strarray_free
(
args
);
}
args
=
strarray_init
();
strarray_add
(
args
,
find_tool
(
"windres"
,
NULL
),
"-i"
,
res_file
,
"-o"
,
output_file_name
,
NULL
);
spawn
(
args
);
strarray_free
(
args
);
output_file_name
=
NULL
;
/* so we don't try to assemble it */
}
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