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
22cf68e1
Commit
22cf68e1
authored
Dec 04, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: On Mac, store the dyld image info address in the PEB.
parent
ce09d363
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
thread.c
dlls/ntdll/thread.c
+20
-0
No files found.
dlls/ntdll/thread.c
View file @
22cf68e1
...
...
@@ -186,6 +186,23 @@ done:
return
status
;
}
#ifdef __APPLE__
#include <mach/mach.h>
#include <mach/mach_error.h>
static
ULONG
get_dyld_image_info_addr
(
void
)
{
ULONG
ret
=
0
;
#ifdef TASK_DYLD_INFO
struct
task_dyld_info
dyld_info
;
mach_msg_type_number_t
size
=
TASK_DYLD_INFO_COUNT
;
if
(
task_info
(
mach_task_self
(),
TASK_DYLD_INFO
,
(
task_info_t
)
&
dyld_info
,
&
size
)
==
KERN_SUCCESS
)
ret
=
dyld_info
.
all_image_info_addr
;
#endif
return
ret
;
}
#endif
/* __APPLE__ */
/***********************************************************************
* thread_init
*
...
...
@@ -245,6 +262,9 @@ HANDLE thread_init(void)
InitializeListHead
(
&
ldr
.
InMemoryOrderModuleList
);
InitializeListHead
(
&
ldr
.
InInitializationOrderModuleList
);
InitializeListHead
(
&
tls_links
);
#ifdef __APPLE__
peb
->
Reserved
[
0
]
=
get_dyld_image_info_addr
();
#endif
/* allocate and initialize the initial TEB */
...
...
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