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
a3452656
Commit
a3452656
authored
Apr 23, 2017
by
Michael Müller
Committed by
Alexandre Julliard
Apr 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Mark LDR data as initialized.
Signed-off-by:
Michael Müller
<
michael@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
16d21d94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
loader.c
dlls/kernel32/tests/loader.c
+5
-2
thread.c
dlls/ntdll/thread.c
+1
-0
No files found.
dlls/kernel32/tests/loader.c
View file @
a3452656
...
...
@@ -2991,10 +2991,13 @@ static void test_ResolveDelayLoadedAPI(void)
static
void
test_InMemoryOrderModuleList
(
void
)
{
LIST_ENTRY
*
entry1
,
*
mark1
=
&
NtCurrentTeb
()
->
Peb
->
LdrData
->
InLoadOrderModuleList
;
LIST_ENTRY
*
entry2
,
*
mark2
=
&
NtCurrentTeb
()
->
Peb
->
LdrData
->
InMemoryOrderModuleList
;
PEB_LDR_DATA
*
ldr
=
NtCurrentTeb
()
->
Peb
->
LdrData
;
LIST_ENTRY
*
entry1
,
*
mark1
=
&
ldr
->
InLoadOrderModuleList
;
LIST_ENTRY
*
entry2
,
*
mark2
=
&
ldr
->
InMemoryOrderModuleList
;
LDR_MODULE
*
module1
,
*
module2
;
ok
(
ldr
->
Initialized
==
TRUE
,
"expected TRUE, got %u
\n
"
,
ldr
->
Initialized
);
for
(
entry1
=
mark1
->
Flink
,
entry2
=
mark2
->
Flink
;
entry1
!=
mark1
&&
entry2
!=
mark2
;
entry1
=
entry1
->
Flink
,
entry2
=
entry2
->
Flink
)
...
...
dlls/ntdll/thread.c
View file @
a3452656
...
...
@@ -259,6 +259,7 @@ HANDLE thread_init(void)
params
.
CurrentDirectory
.
DosPath
.
MaximumLength
=
sizeof
(
current_dir
);
params
.
wShowWindow
=
1
;
/* SW_SHOWNORMAL */
ldr
.
Length
=
sizeof
(
ldr
);
ldr
.
Initialized
=
TRUE
;
RtlInitializeBitMap
(
&
tls_bitmap
,
peb
->
TlsBitmapBits
,
sizeof
(
peb
->
TlsBitmapBits
)
*
8
);
RtlInitializeBitMap
(
&
tls_expansion_bitmap
,
peb
->
TlsExpansionBitmapBits
,
sizeof
(
peb
->
TlsExpansionBitmapBits
)
*
8
);
...
...
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