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
77b36625
Commit
77b36625
authored
Dec 15, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix ProcessMachineTypeInfo tests.
parent
206a7495
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
process.c
dlls/kernel32/tests/process.c
+9
-1
No files found.
dlls/kernel32/tests/process.c
View file @
77b36625
...
...
@@ -5296,15 +5296,24 @@ static void test_GetProcessInformation(void)
return
;
}
SetLastError
(
0xdeadbeef
);
ret
=
pGetProcessInformation
(
GetCurrentProcess
(),
ProcessMachineTypeInfo
,
NULL
,
0
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
{
win_skip
(
"GetProcessInformation(ProcessMachineTypeInfo) is not supported.
\n
"
);
/* < win11 */
return
;
}
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_BAD_LENGTH
,
"Unexpected error %ld.
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pGetProcessInformation
(
GetCurrentProcess
(),
ProcessMachineTypeInfo
,
&
mi
,
0
);
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_BAD_LENGTH
,
"Unexpected error %ld.
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pGetProcessInformation
(
GetCurrentProcess
(),
ProcessMachineTypeInfo
,
&
mi
,
sizeof
(
mi
)
-
1
);
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_BAD_LENGTH
,
"Unexpected error %ld.
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pGetProcessInformation
(
GetCurrentProcess
(),
ProcessMachineTypeInfo
,
&
mi
,
sizeof
(
mi
)
+
1
);
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_BAD_LENGTH
,
"Unexpected error %ld.
\n
"
,
GetLastError
());
...
...
@@ -5321,7 +5330,6 @@ static void test_GetProcessInformation(void)
if
(
machines
[
i
].
Process
)
{
ok
(
mi
.
ProcessMachine
==
machines
[
i
].
Machine
,
"Unexpected process machine %#x.
\n
"
,
mi
.
ProcessMachine
);
ok
(
!
mi
.
Res0
,
"Unexpected process machine %#x.
\n
"
,
mi
.
ProcessMachine
);
ok
(
!!
(
mi
.
MachineAttributes
&
UserEnabled
)
==
machines
[
i
].
UserMode
,
"Unexpected attributes %#x.
\n
"
,
mi
.
MachineAttributes
);
ok
(
!!
(
mi
.
MachineAttributes
&
KernelEnabled
)
==
machines
[
i
].
KernelMode
,
"Unexpected attributes %#x.
\n
"
,
...
...
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