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
3fc4e884
Commit
3fc4e884
authored
Oct 23, 2012
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Oct 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add ReturnLength test for NtQuerySystemInformation with SystemProcessInformation.
parent
8ab1fc5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
info.c
dlls/ntdll/tests/info.c
+8
-2
No files found.
dlls/ntdll/tests/info.c
View file @
3fc4e884
...
...
@@ -285,8 +285,14 @@ static void test_query_process(void)
ULONG
SystemInformationLength
=
sizeof
(
SYSTEM_PROCESS_INFORMATION_PRIVATE
);
SYSTEM_PROCESS_INFORMATION_PRIVATE
*
spi
,
*
spi_buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
SystemInformationLength
);
/* Only W2K3 returns the needed length, the rest returns 0, so we have to loop */
/* test ReturnLength */
ReturnLength
=
0
;
status
=
pNtQuerySystemInformation
(
SystemProcessInformation
,
NULL
,
0
,
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_LENGTH_MISMATCH got %08x
\n
"
,
status
);
todo_wine
ok
(
ReturnLength
>
0
||
broken
(
ReturnLength
==
0
)
/* NT4, Win2K */
,
"Expected a ReturnLength to show the needed length
\n
"
);
/* W2K3 and later returns the needed length, the rest returns 0, so we have to loop */
for
(;;)
{
status
=
pNtQuerySystemInformation
(
SystemProcessInformation
,
spi_buf
,
SystemInformationLength
,
&
ReturnLength
);
...
...
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