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
1aff1e6a
Commit
1aff1e6a
authored
Oct 20, 2019
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
Oct 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix the SYSTEM_MODULE struct field names.
Based on
https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/rtl/ldrreloc/process_module_information.htm?ts=0,44
Signed-off-by:
Vijay Kiran Kamuju
<
infyquest@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9d123b54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
loader.c
dlls/ntdll/loader.c
+5
-5
info.c
dlls/ntdll/tests/info.c
+1
-1
winternl.h
include/winternl.h
+5
-5
No files found.
dlls/ntdll/loader.c
View file @
1aff1e6a
...
...
@@ -3259,14 +3259,14 @@ NTSTATUS WINAPI LdrQueryProcessModuleInformation(PSYSTEM_MODULE_INFORMATION smi,
size
+=
sizeof
(
*
sm
);
if
(
size
<=
buf_size
)
{
sm
->
Reserved1
=
0
;
/* FIXME */
sm
->
Reserved2
=
0
;
/* FIXME */
sm
->
Section
=
0
;
/* FIXME */
sm
->
MappedBaseAddress
=
mod
->
BaseAddress
;
sm
->
ImageBaseAddress
=
mod
->
BaseAddress
;
sm
->
ImageSize
=
mod
->
SizeOfImage
;
sm
->
Flags
=
mod
->
Flags
;
sm
->
Id
=
id
++
;
sm
->
Rank
=
0
;
/* FIXME */
sm
->
Unknown
=
0
;
/* FIXME */
sm
->
LoadOrderIndex
=
id
++
;
sm
->
InitOrderIndex
=
0
;
/* FIXME */
sm
->
LoadCount
=
mod
->
LoadCount
;
str
.
Length
=
0
;
str
.
MaximumLength
=
MAXIMUM_FILENAME_LENGTH
;
str
.
Buffer
=
(
char
*
)
sm
->
Name
;
...
...
dlls/ntdll/tests/info.c
View file @
1aff1e6a
...
...
@@ -488,7 +488,7 @@ static void test_query_module(void)
/* Loop through all the modules/drivers, Wine doesn't get here (yet) */
for
(
i
=
0
;
i
<
ModuleCount
;
i
++
)
{
ok
(
i
==
sm
->
Id
,
"Id (%d) should have matched %u
\n
"
,
sm
->
Id
,
i
);
ok
(
i
==
sm
->
LoadOrderIndex
,
"LoadOrderIndex (%d) should have matched %u
\n
"
,
sm
->
LoadOrderIndex
,
i
);
sm
++
;
}
...
...
include/winternl.h
View file @
1aff1e6a
...
...
@@ -2271,14 +2271,14 @@ typedef void (CALLBACK *PLDR_DLL_NOTIFICATION_FUNCTION)(ULONG, LDR_DLL_NOTIFICAT
typedef
struct
_SYSTEM_MODULE
{
PVOID
Reserved1
;
/* 00/00 */
PVOID
Reserved2
;
/* 04/08 */
PVOID
Section
;
/* 00/00 */
PVOID
MappedBaseAddress
;
/* 04/08 */
PVOID
ImageBaseAddress
;
/* 08/10 */
ULONG
ImageSize
;
/* 0c/18 */
ULONG
Flags
;
/* 10/1c */
WORD
Id
;
/* 14/20 */
WORD
Rank
;
/* 16/22 */
WORD
Unknown
;
/* 18/24 */
WORD
LoadOrderIndex
;
/* 14/20 */
WORD
InitOrderIndex
;
/* 16/22 */
WORD
LoadCount
;
/* 18/24 */
WORD
NameOffset
;
/* 1a/26 */
BYTE
Name
[
MAXIMUM_FILENAME_LENGTH
];
/* 1c/28 */
}
SYSTEM_MODULE
,
*
PSYSTEM_MODULE
;
...
...
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