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
c80f806e
Commit
c80f806e
authored
Nov 08, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Print a warning when LdrGetProcedureAddress() fails.
parent
bc13bda5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
loader.c
dlls/ntdll/loader.c
+7
-1
No files found.
dlls/ntdll/loader.c
View file @
c80f806e
...
...
@@ -2006,13 +2006,14 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name,
ULONG
ord
,
PVOID
*
address
)
{
IMAGE_EXPORT_DIRECTORY
*
exports
;
WINE_MODREF
*
wm
;
DWORD
exp_size
;
NTSTATUS
ret
=
STATUS_PROCEDURE_NOT_FOUND
;
RtlEnterCriticalSection
(
&
loader_section
);
/* check if the module itself is invalid to return the proper error */
if
(
!
get_modref
(
module
))
ret
=
STATUS_DLL_NOT_FOUND
;
if
(
!
(
wm
=
get_modref
(
module
)
))
ret
=
STATUS_DLL_NOT_FOUND
;
else
if
((
exports
=
RtlImageDirectoryEntryToData
(
module
,
TRUE
,
IMAGE_DIRECTORY_ENTRY_EXPORT
,
&
exp_size
)))
{
...
...
@@ -2023,6 +2024,11 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name,
*
address
=
proc
;
ret
=
STATUS_SUCCESS
;
}
else
{
WARN
(
"%s (ordinal %lu) not found in %s
\n
"
,
debugstr_a
(
name
?
name
->
Buffer
:
NULL
),
ord
,
debugstr_us
(
&
wm
->
ldr
.
FullDllName
)
);
}
}
RtlLeaveCriticalSection
(
&
loader_section
);
...
...
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