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
7ee8adfd
Commit
7ee8adfd
authored
May 25, 2004
by
Emmanuel Maillard
Committed by
Alexandre Julliard
May 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added environ support for Darwin.
parent
616cffb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
config.c
libs/wine/config.c
+1
-2
loader.c
libs/wine/loader.c
+7
-1
No files found.
libs/wine/config.c
View file @
7ee8adfd
...
@@ -276,9 +276,8 @@ const char *wine_get_user_name(void)
...
@@ -276,9 +276,8 @@ const char *wine_get_user_name(void)
void
wine_exec_wine_binary
(
const
char
*
name
,
char
**
argv
,
char
**
envp
)
void
wine_exec_wine_binary
(
const
char
*
name
,
char
**
argv
,
char
**
envp
)
{
{
const
char
*
path
,
*
pos
,
*
ptr
;
const
char
*
path
,
*
pos
,
*
ptr
;
extern
char
**
environ
;
if
(
!
envp
)
envp
=
environ
;
if
(
!
envp
)
envp
=
__wine_main_
environ
;
if
(
!
name
)
name
=
argv0_name
;
if
(
!
name
)
name
=
argv0_name
;
/* first, try bin directory */
/* first, try bin directory */
...
...
libs/wine/loader.c
View file @
7ee8adfd
...
@@ -71,6 +71,13 @@ static const char **dll_paths;
...
@@ -71,6 +71,13 @@ static const char **dll_paths;
static
int
nb_dll_paths
;
static
int
nb_dll_paths
;
static
int
dll_path_maxlen
;
static
int
dll_path_maxlen
;
#ifdef __APPLE__
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#else
extern
char
**
environ
;
#endif
extern
void
mmap_init
(
void
);
extern
void
mmap_init
(
void
);
/* build the dll load path from the WINEDLLPATH variable */
/* build the dll load path from the WINEDLLPATH variable */
...
@@ -506,7 +513,6 @@ static void debug_usage(void)
...
@@ -506,7 +513,6 @@ static void debug_usage(void)
*/
*/
void
wine_init
(
int
argc
,
char
*
argv
[],
char
*
error
,
int
error_size
)
void
wine_init
(
int
argc
,
char
*
argv
[],
char
*
error
,
int
error_size
)
{
{
extern
char
**
environ
;
char
*
wine_debug
;
char
*
wine_debug
;
int
file_exists
;
int
file_exists
;
void
*
ntdll
;
void
*
ntdll
;
...
...
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