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
9ab93415
Commit
9ab93415
authored
Nov 29, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: In macOS preloader, manually set 'environ' to work around a bug in macOS 12 and later.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54009
parent
588e5554
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
preloader_mac.c
loader/preloader_mac.c
+16
-0
No files found.
loader/preloader_mac.c
View file @
9ab93415
...
...
@@ -704,6 +704,22 @@ void *wld_start( void *stack, int *is_unix_thread )
/* decrement argc and "remove" argv[0] */
fixup_stack
(
stack
);
#if defined(__x86_64__)
/* For LC_UNIXTHREAD binaries on Monterey and later, 'environ' is not set and is NULL.
* Set the correct value here.
*/
if
(
*
is_unix_thread
)
{
char
**
env
,
***
wine_environ
=
pdlsym
(
mod
,
"environ"
);
pargc
=
stack
;
argv
=
(
char
**
)
pargc
+
1
;
env
=
&
argv
[
*
pargc
-
1
]
+
2
;
*
wine_environ
=
env
;
}
#endif
return
entry
;
}
...
...
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