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
5817e366
Commit
5817e366
authored
Jun 19, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Improved the stub behavior of NtQuerySystemInformation(SystemModuleInformation).
parent
fbbd9154
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
18 deletions
+6
-18
loader.c
dlls/ntdll/loader.c
+2
-1
nt.c
dlls/ntdll/nt.c
+2
-13
info.c
dlls/ntdll/tests/info.c
+2
-4
No files found.
dlls/ntdll/loader.c
View file @
5817e366
...
...
@@ -1859,6 +1859,7 @@ NTSTATUS WINAPI LdrQueryProcessModuleInformation(PSYSTEM_MODULE_INFORMATION smi,
char
*
ptr
;
PLIST_ENTRY
mark
,
entry
;
PLDR_MODULE
mod
;
WORD
id
=
0
;
smi
->
ModulesCount
=
0
;
...
...
@@ -1875,7 +1876,7 @@ NTSTATUS WINAPI LdrQueryProcessModuleInformation(PSYSTEM_MODULE_INFORMATION smi,
sm
->
ImageBaseAddress
=
mod
->
BaseAddress
;
sm
->
ImageSize
=
mod
->
SizeOfImage
;
sm
->
Flags
=
mod
->
Flags
;
sm
->
Id
=
0
;
/* FIXME */
sm
->
Id
=
id
++
;
sm
->
Rank
=
0
;
/* FIXME */
sm
->
Unknown
=
0
;
/* FIXME */
str
.
Length
=
0
;
...
...
dlls/ntdll/nt.c
View file @
5817e366
...
...
@@ -844,19 +844,8 @@ NTSTATUS WINAPI NtQuerySystemInformation(
}
break
;
case
SystemModuleInformation
:
{
SYSTEM_MODULE_INFORMATION
smi
;
memset
(
&
smi
,
0
,
sizeof
(
smi
));
len
=
sizeof
(
smi
);
if
(
Length
>=
len
)
{
if
(
!
SystemInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
memcpy
(
SystemInformation
,
&
smi
,
len
);
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
}
/* FIXME: should be system-wide */
ret
=
LdrQueryProcessModuleInformation
(
SystemInformation
,
Length
,
&
len
);
break
;
case
SystemHandleInformation
:
{
...
...
dlls/ntdll/tests/info.c
View file @
5817e366
...
...
@@ -382,10 +382,8 @@ static void test_query_module(void)
ModuleCount
=
smi
->
ModulesCount
;
sm
=
&
smi
->
Modules
[
0
];
todo_wine
{
/* our implementation is a stub for now */
ok
(
ModuleCount
>
0
,
"Expected some modules to be loaded
\n
"
);
}
/* our implementation is a stub for now */
ok
(
ModuleCount
>
0
,
"Expected some modules to be loaded
\n
"
);
/* Loop through all the modules/drivers, Wine doesn't get here (yet) */
for
(
i
=
0
;
i
<
ModuleCount
;
i
++
)
...
...
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