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
bf566139
Commit
bf566139
authored
Mar 16, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Added support for executing wine binaries out of the build dir.
parent
77b3b92e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
server.c
dlls/ntdll/server.c
+2
-2
config.c
libs/wine/config.c
+12
-0
No files found.
dlls/ntdll/server.c
View file @
bf566139
...
...
@@ -598,7 +598,7 @@ static void start_server(void)
if
(
pid
==
-
1
)
fatal_perror
(
"fork"
);
if
(
!
pid
)
{
argv
[
0
]
=
"wineserver"
;
argv
[
0
]
=
"
server/
wineserver"
;
argv
[
1
]
=
TRACE_ON
(
server
)
?
"-d"
:
NULL
;
argv
[
2
]
=
NULL
;
wine_exec_wine_binary
(
argv
[
0
],
argv
,
getenv
(
"WINESERVER"
)
);
...
...
@@ -797,7 +797,7 @@ static void create_config_dir(void)
{
const
char
*
argv
[
6
];
argv
[
0
]
=
"wineprefixcreate"
;
argv
[
0
]
=
"
tools/
wineprefixcreate"
;
argv
[
1
]
=
"--quiet"
;
argv
[
2
]
=
"--wait"
;
argv
[
3
]
=
"--prefix"
;
...
...
libs/wine/config.c
View file @
bf566139
...
...
@@ -427,6 +427,18 @@ void wine_exec_wine_binary( const char *name, char **argv, const char *env_var )
use_preloader
=
1
;
}
if
((
ptr
=
strrchr
(
name
,
'/'
)))
{
/* if we are in build dir and name contains a path, try that */
if
(
build_dir
)
{
argv
[
0
]
=
build_path
(
build_dir
,
name
);
preloader_exec
(
argv
,
use_preloader
);
free
(
argv
[
0
]
);
}
name
=
ptr
+
1
;
/* get rid of path */
}
/* first, bin directory from the current libdir or argv0 */
if
(
bindir
)
{
...
...
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