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
135612d2
Commit
135612d2
authored
Sep 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add support for ordinal forwards.
parent
c39e28ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
loader.c
dlls/ntdll/loader.c
+9
-1
No files found.
dlls/ntdll/loader.c
View file @
135612d2
...
...
@@ -116,6 +116,8 @@ static WINE_MODREF *last_failed_modref;
static
NTSTATUS
load_dll
(
LPCWSTR
load_path
,
LPCWSTR
libname
,
DWORD
flags
,
WINE_MODREF
**
pwm
);
static
NTSTATUS
process_attach
(
WINE_MODREF
*
wm
,
LPVOID
lpReserved
);
static
FARPROC
find_ordinal_export
(
HMODULE
module
,
const
IMAGE_EXPORT_DIRECTORY
*
exports
,
DWORD
exp_size
,
DWORD
ordinal
,
LPCWSTR
load_path
);
static
FARPROC
find_named_export
(
HMODULE
module
,
const
IMAGE_EXPORT_DIRECTORY
*
exports
,
DWORD
exp_size
,
const
char
*
name
,
int
hint
,
LPCWSTR
load_path
);
...
...
@@ -403,7 +405,13 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward, LPCWS
}
if
((
exports
=
RtlImageDirectoryEntryToData
(
wm
->
ldr
.
BaseAddress
,
TRUE
,
IMAGE_DIRECTORY_ENTRY_EXPORT
,
&
exp_size
)))
proc
=
find_named_export
(
wm
->
ldr
.
BaseAddress
,
exports
,
exp_size
,
end
+
1
,
-
1
,
load_path
);
{
const
char
*
name
=
end
+
1
;
if
(
*
name
==
'#'
)
/* ordinal */
proc
=
find_ordinal_export
(
wm
->
ldr
.
BaseAddress
,
exports
,
exp_size
,
atoi
(
name
+
1
),
load_path
);
else
proc
=
find_named_export
(
wm
->
ldr
.
BaseAddress
,
exports
,
exp_size
,
name
,
-
1
,
load_path
);
}
if
(
!
proc
)
{
...
...
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