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
c2a2687d
Commit
c2a2687d
authored
May 16, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
May 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Don't fail if a process is not available.
parent
766530df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
info.c
dlls/ntdll/tests/info.c
+9
-1
No files found.
dlls/ntdll/tests/info.c
View file @
c2a2687d
...
...
@@ -729,7 +729,15 @@ static void test_query_process_handlecount(void)
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_INFO_LENGTH_MISMATCH, got %08lx
\n
"
,
status
);
process
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
,
FALSE
,
one_before_last_pid
);
trace
(
"Handlecount for process with ID : %ld
\n
"
,
one_before_last_pid
);
if
(
!
process
)
{
trace
(
"Could not open process with ID : %ld, error : %08lx. Going to use current one.
\n
"
,
one_before_last_pid
,
GetLastError
());
process
=
GetCurrentProcess
();
trace
(
"ProcessHandleCount for current process
\n
"
);
}
else
trace
(
"ProcessHandleCount for process with ID : %ld
\n
"
,
one_before_last_pid
);
status
=
pNtQueryInformationProcess
(
process
,
ProcessHandleCount
,
&
handlecount
,
sizeof
(
handlecount
),
&
ReturnLength
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08lx
\n
"
,
status
);
ok
(
sizeof
(
handlecount
)
==
ReturnLength
,
"Inconsistent length (%d) <-> (%ld)
\n
"
,
sizeof
(
handlecount
),
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