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
910234ea
Commit
910234ea
authored
May 29, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass the environ variable from main to try to avoid Darwin's
_NSGetEnviron() ugliness.
parent
3270bb1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
11 deletions
+5
-11
library.h
include/wine/library.h
+1
-1
port.h
include/wine/port.h
+0
-7
loader.c
libs/wine/loader.c
+2
-2
main.c
loader/main.c
+2
-1
No files found.
include/wine/library.h
View file @
910234ea
...
...
@@ -53,7 +53,7 @@ extern int __wine_main_argc;
extern
char
**
__wine_main_argv
;
extern
WCHAR
**
__wine_main_wargv
;
extern
char
**
__wine_main_environ
;
extern
void
wine_init
(
int
argc
,
char
*
argv
[],
char
*
error
,
int
error_size
);
extern
void
wine_init
(
int
argc
,
char
*
argv
[],
char
*
e
nvp
[],
char
*
e
rror
,
int
error_size
);
/* debugging */
...
...
include/wine/port.h
View file @
910234ea
...
...
@@ -172,13 +172,6 @@ struct statvfs
# define S_IXOTH S_IEXEC
#endif
#ifdef __APPLE__
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#else
extern
char
**
environ
;
#endif
/****************************************************************
* Constants
...
...
libs/wine/loader.c
View file @
910234ea
...
...
@@ -504,7 +504,7 @@ static void debug_usage(void)
*
* Main Wine initialisation.
*/
void
wine_init
(
int
argc
,
char
*
argv
[],
char
*
error
,
int
error_size
)
void
wine_init
(
int
argc
,
char
*
argv
[],
char
*
e
nvp
[],
char
*
e
rror
,
int
error_size
)
{
char
*
wine_debug
;
int
file_exists
;
...
...
@@ -515,7 +515,7 @@ void wine_init( int argc, char *argv[], char *error, int error_size )
wine_init_argv0_path
(
argv
[
0
]
);
__wine_main_argc
=
argc
;
__wine_main_argv
=
argv
;
__wine_main_environ
=
env
iron
;
__wine_main_environ
=
env
p
;
mmap_init
();
if
((
wine_debug
=
getenv
(
"WINEDEBUG"
)))
...
...
loader/main.c
View file @
910234ea
...
...
@@ -33,6 +33,7 @@ int main( int argc, char *argv[] )
{
char
error
[
1024
];
int
i
;
extern
char
**
environ
;
if
(
wine_main_preload_info
)
{
...
...
@@ -41,7 +42,7 @@ int main( int argc, char *argv[] )
wine_main_preload_info
[
i
].
size
);
}
wine_init
(
argc
,
argv
,
error
,
sizeof
(
error
)
);
wine_init
(
argc
,
argv
,
e
nviron
,
e
rror
,
sizeof
(
error
)
);
fprintf
(
stderr
,
"wine: failed to initialize: %s
\n
"
,
error
);
exit
(
1
);
}
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