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
60f0439b
Commit
60f0439b
authored
Aug 02, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make relay and snooping work for LoadLibrary+GetProcAddress sequence
(based on a patch by Dmitry Timoshkov).
parent
fbf003dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
loader.c
dlls/ntdll/loader.c
+6
-6
relay.c
dlls/ntdll/relay.c
+1
-0
No files found.
dlls/ntdll/loader.c
View file @
60f0439b
...
...
@@ -305,15 +305,15 @@ static FARPROC find_ordinal_export( HMODULE module, const IMAGE_EXPORT_DIRECTORY
((
const
char
*
)
proc
<
(
const
char
*
)
exports
+
exp_size
))
return
find_forwarded_export
(
module
,
(
const
char
*
)
proc
);
if
(
TRACE_ON
(
snoop
)
&&
current_modref
)
if
(
TRACE_ON
(
snoop
))
{
proc
=
SNOOP_GetProcAddress
(
module
,
exports
,
exp_size
,
proc
,
ordinal
,
current_modref
->
ldr
.
BaseDllName
.
Buff
er
);
const
WCHAR
*
user
=
current_modref
?
current_modref
->
ldr
.
BaseDllName
.
Buffer
:
NULL
;
proc
=
SNOOP_GetProcAddress
(
module
,
exports
,
exp_size
,
proc
,
ordinal
,
us
er
);
}
if
(
TRACE_ON
(
relay
)
&&
current_modref
)
if
(
TRACE_ON
(
relay
))
{
proc
=
RELAY_GetProcAddress
(
module
,
exports
,
exp_size
,
proc
,
current_modref
->
ldr
.
BaseDllName
.
Buff
er
);
const
WCHAR
*
user
=
current_modref
?
current_modref
->
ldr
.
BaseDllName
.
Buffer
:
NULL
;
proc
=
RELAY_GetProcAddress
(
module
,
exports
,
exp_size
,
proc
,
us
er
);
}
return
proc
;
}
...
...
dlls/ntdll/relay.c
View file @
60f0439b
...
...
@@ -332,6 +332,7 @@ static BOOL check_from_module( const WCHAR **includelist, const WCHAR **excludel
const
WCHAR
**
listitem
;
BOOL
show
;
if
(
!
module
)
return
TRUE
;
if
(
!
includelist
&&
!
excludelist
)
return
TRUE
;
if
(
excludelist
)
{
...
...
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