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
2f3c8be5
Commit
2f3c8be5
authored
Jun 13, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix the PROCESS_BASIC_INFORMATION exit status type.
parent
e55c432a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
loader.c
dlls/kernel32/tests/loader.c
+4
-4
No files found.
dlls/kernel32/tests/loader.c
View file @
2f3c8be5
...
...
@@ -38,7 +38,7 @@
struct
PROCESS_BASIC_INFORMATION_PRIVATE
{
DWORD_PTR
ExitStatus
;
NTSTATUS
ExitStatus
;
PPEB
PebBaseAddress
;
DWORD_PTR
AffinityMask
;
DWORD_PTR
BasePriority
;
...
...
@@ -3004,7 +3004,7 @@ static void child_process(const char *dll_name, DWORD target_offset)
ret
=
pNtQueryInformationProcess
(
process
,
ProcessBasicInformation
,
&
pbi
,
sizeof
(
pbi
),
NULL
);
ok
(
!
ret
,
"NtQueryInformationProcess error %#lx
\n
"
,
ret
);
ok
(
pbi
.
ExitStatus
==
STILL_ACTIVE
||
pbi
.
ExitStatus
==
195
,
"expected STILL_ACTIVE, got %
I
u
\n
"
,
pbi
.
ExitStatus
);
"expected STILL_ACTIVE, got %
l
u
\n
"
,
pbi
.
ExitStatus
);
affinity
=
1
;
ret
=
pNtSetInformationProcess
(
process
,
ProcessAffinityMask
,
&
affinity
,
sizeof
(
affinity
));
ok
(
!
ret
,
"NtSetInformationProcess error %#lx
\n
"
,
ret
);
...
...
@@ -3040,7 +3040,7 @@ static void child_process(const char *dll_name, DWORD target_offset)
ret
=
pNtQueryInformationProcess
(
process
,
ProcessBasicInformation
,
&
pbi
,
sizeof
(
pbi
),
NULL
);
ok
(
!
ret
,
"NtQueryInformationProcess error %#lx
\n
"
,
ret
);
ok
(
pbi
.
ExitStatus
==
STILL_ACTIVE
||
pbi
.
ExitStatus
==
195
,
"expected STILL_ACTIVE, got %
I
u
\n
"
,
pbi
.
ExitStatus
);
"expected STILL_ACTIVE, got %
l
u
\n
"
,
pbi
.
ExitStatus
);
affinity
=
1
;
ret
=
pNtSetInformationProcess
(
process
,
ProcessAffinityMask
,
&
affinity
,
sizeof
(
affinity
));
ok
(
!
ret
,
"NtSetInformationProcess error %#lx
\n
"
,
ret
);
...
...
@@ -3555,7 +3555,7 @@ static void test_ExitProcess(void)
memset
(
&
pbi
,
0
,
sizeof
(
pbi
));
ret
=
pNtQueryInformationProcess
(
pi
.
hProcess
,
ProcessBasicInformation
,
&
pbi
,
sizeof
(
pbi
),
NULL
);
ok
(
!
ret
,
"NtQueryInformationProcess error %#lx
\n
"
,
ret
);
ok
(
pbi
.
ExitStatus
==
198
,
"expected 198, got %
I
u
\n
"
,
pbi
.
ExitStatus
);
ok
(
pbi
.
ExitStatus
==
198
,
"expected 198, got %
l
u
\n
"
,
pbi
.
ExitStatus
);
affinity
=
1
;
ret
=
pNtSetInformationProcess
(
pi
.
hProcess
,
ProcessAffinityMask
,
&
affinity
,
sizeof
(
affinity
));
ok
(
ret
==
STATUS_PROCESS_IS_TERMINATING
,
"expected STATUS_PROCESS_IS_TERMINATING, got %#lx
\n
"
,
ret
);
...
...
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