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
a60d6f3e
Commit
a60d6f3e
authored
Nov 27, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Still use LdrGetProcedureAddress for CtrlRoutine.
Fixes
d57c4199
.
parent
5b01bf79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
loader.c
dlls/ntdll/loader.c
+2
-1
No files found.
dlls/ntdll/loader.c
View file @
a60d6f3e
...
...
@@ -4268,6 +4268,7 @@ void loader_init( CONTEXT *context, void **entry )
if
(
!
imports_fixup_done
)
{
MEMORY_BASIC_INFORMATION
meminfo
;
ANSI_STRING
ctrl_routine
=
RTL_CONSTANT_STRING
(
"CtrlRoutine"
);
WINE_MODREF
*
kernel32
;
PEB
*
peb
=
NtCurrentTeb
()
->
Peb
;
...
...
@@ -4304,7 +4305,7 @@ void loader_init( CONTEXT *context, void **entry )
}
node_kernel32
=
kernel32
->
ldr
.
DdagNode
;
pBaseThreadInitThunk
=
RtlFindExportedRoutineByName
(
kernel32
->
ldr
.
DllBase
,
"BaseThreadInitThunk"
);
pCtrlRoutine
=
RtlFindExportedRoutineByName
(
kernel32
->
ldr
.
DllBase
,
"CtrlRoutine"
);
LdrGetProcedureAddress
(
kernel32
->
ldr
.
DllBase
,
&
ctrl_routine
,
0
,
(
void
**
)
&
pCtrlRoutine
);
actctx_init
();
locale_init
();
...
...
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