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
9d55475e
Commit
9d55475e
authored
Dec 30, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Always initialize the dll name at startup.
parent
d097eef9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
main.c
tools/winebuild/main.c
+18
-0
spec16.c
tools/winebuild/spec16.c
+0
-19
No files found.
tools/winebuild/main.c
View file @
9d55475e
...
...
@@ -138,6 +138,23 @@ static void set_dll_file_name( const char *name, DLLSPEC *spec )
}
}
/* set the dll name from the file name */
static
void
init_dll_name
(
DLLSPEC
*
spec
)
{
if
(
!
spec
->
file_name
)
{
char
*
p
;
spec
->
file_name
=
xstrdup
(
output_file_name
);
if
((
p
=
strrchr
(
spec
->
file_name
,
'.'
)))
*
p
=
0
;
}
if
(
!
spec
->
dll_name
)
/* set default name from file name */
{
char
*
p
;
spec
->
dll_name
=
xstrdup
(
spec
->
file_name
);
if
((
p
=
strrchr
(
spec
->
dll_name
,
'.'
)))
*
p
=
0
;
}
}
/* set the dll subsystem */
static
void
set_subsystem
(
const
char
*
subsystem
,
DLLSPEC
*
spec
)
{
...
...
@@ -505,6 +522,7 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
if
(
spec
->
file_name
&&
!
strchr
(
spec
->
file_name
,
'.'
))
strcat
(
spec
->
file_name
,
exec_mode
==
MODE_EXE
?
".exe"
:
".dll"
);
init_dll_name
(
spec
);
switch
(
target_cpu
)
{
...
...
tools/winebuild/spec16.c
View file @
9d55475e
...
...
@@ -64,22 +64,6 @@ static inline int is_function( const ORDDEF *odp )
odp
->
type
==
TYPE_STUB
);
}
static
void
init_dll_name
(
DLLSPEC
*
spec
)
{
if
(
!
spec
->
file_name
)
{
char
*
p
;
spec
->
file_name
=
xstrdup
(
output_file_name
);
if
((
p
=
strrchr
(
spec
->
file_name
,
'.'
)))
*
p
=
0
;
}
if
(
!
spec
->
dll_name
)
/* set default name from file name */
{
char
*
p
;
spec
->
dll_name
=
xstrdup
(
spec
->
file_name
);
if
((
p
=
strrchr
(
spec
->
dll_name
,
'.'
)))
*
p
=
0
;
}
}
/*******************************************************************
* output_entries
*
...
...
@@ -853,7 +837,6 @@ static void output_module16( DLLSPEC *spec )
*/
void
BuildSpec16File
(
DLLSPEC
*
spec
)
{
init_dll_name
(
spec
);
output_standard_file_header
();
output_module16
(
spec
);
output_init_code
(
spec
);
...
...
@@ -877,7 +860,6 @@ void output_spec16_file( DLLSPEC *spec16 )
{
DLLSPEC
*
spec32
=
alloc_dll_spec
();
init_dll_name
(
spec16
);
spec32
->
file_name
=
xstrdup
(
spec16
->
file_name
);
if
(
spec16
->
characteristics
&
IMAGE_FILE_DLL
)
...
...
@@ -921,7 +903,6 @@ void output_fake_module16( DLLSPEC *spec )
unsigned
int
i
,
rsrctab
,
restab
,
namelen
,
modtab
,
imptab
,
enttab
,
cbenttab
,
codeseg
,
dataseg
,
rsrcdata
;
init_dll_name
(
spec
);
init_output_buffer
();
rsrctab
=
lfanew
;
...
...
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