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
e001daf5
Commit
e001daf5
authored
Aug 26, 2019
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Add window name and window class name test.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2f51ebd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
device.c
dlls/dinput8/tests/device.c
+13
-0
No files found.
dlls/dinput8/tests/device.c
View file @
e001daf5
...
...
@@ -628,7 +628,20 @@ static void test_mouse_keyboard(void)
ok
(
raw_devices_count
==
0
,
"Unexpected raw devices registered: %d
\n
"
,
raw_devices_count
);
if
(
raw_devices
[
0
].
hwndTarget
!=
NULL
)
{
WCHAR
di_hwnd_class
[]
=
{
'D'
,
'I'
,
'E'
,
'm'
,
'W'
,
'i'
,
'n'
,
0
};
WCHAR
str
[
16
];
int
i
;
di_hwnd
=
raw_devices
[
0
].
hwndTarget
;
i
=
GetClassNameW
(
di_hwnd
,
str
,
ARRAY_SIZE
(
str
));
ok
(
i
==
lstrlenW
(
di_hwnd_class
),
"GetClassName returned incorrect length
\n
"
);
ok
(
!
lstrcmpW
(
di_hwnd_class
,
str
),
"GetClassName returned incorrect name for this window's class
\n
"
);
i
=
GetWindowTextW
(
di_hwnd
,
str
,
ARRAY_SIZE
(
str
));
ok
(
i
==
lstrlenW
(
di_hwnd_class
),
"GetClassName returned incorrect length
\n
"
);
ok
(
!
lstrcmpW
(
di_hwnd_class
,
str
),
"GetClassName returned incorrect name for this window's class
\n
"
);
}
hr
=
IDirectInputDevice8_Acquire
(
di_mouse
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice8_Acquire failed: %08x
\n
"
,
hr
);
...
...
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