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
87839a41
Commit
87839a41
authored
Jan 28, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u/tests: Test NtUserIsMouseInPointerEnabled syscall.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53847
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=51537
parent
9443bde5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
win32u.c
dlls/win32u/tests/win32u.c
+12
-0
No files found.
dlls/win32u/tests/win32u.c
View file @
87839a41
...
...
@@ -826,19 +826,31 @@ static void test_NtUserEnableMouseInPointer_process( const char *arg )
DWORD
enable
=
strtoul
(
arg
,
0
,
10
);
BOOL
ret
;
ret
=
NtUserIsMouseInPointerEnabled
();
ok
(
!
ret
,
"NtUserIsMouseInPointerEnabled returned %u, error %lu
\n
"
,
ret
,
GetLastError
()
);
ret
=
NtUserEnableMouseInPointer
(
enable
);
todo_wine
ok
(
ret
,
"NtUserEnableMouseInPointer failed, error %lu
\n
"
,
GetLastError
()
);
ret
=
NtUserIsMouseInPointerEnabled
();
todo_wine_if
(
enable
)
ok
(
ret
==
enable
,
"NtUserIsMouseInPointerEnabled returned %u, error %lu
\n
"
,
ret
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
ret
=
NtUserEnableMouseInPointer
(
!
enable
);
ok
(
!
ret
,
"NtUserEnableMouseInPointer succeeded
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"got error %lu
\n
"
,
GetLastError
()
);
ret
=
NtUserIsMouseInPointerEnabled
();
todo_wine_if
(
enable
)
ok
(
ret
==
enable
,
"NtUserIsMouseInPointerEnabled returned %u, error %lu
\n
"
,
ret
,
GetLastError
()
);
ret
=
NtUserEnableMouseInPointer
(
enable
);
todo_wine
ok
(
ret
,
"NtUserEnableMouseInPointer failed, error %lu
\n
"
,
GetLastError
()
);
ret
=
NtUserIsMouseInPointerEnabled
();
todo_wine_if
(
enable
)
ok
(
ret
==
enable
,
"NtUserIsMouseInPointerEnabled returned %u, error %lu
\n
"
,
ret
,
GetLastError
()
);
}
static
void
test_NtUserEnableMouseInPointer
(
char
**
argv
,
BOOL
enable
)
...
...
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