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
21e3ba96
Commit
21e3ba96
authored
Oct 07, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b9c43df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
device.c
dlls/dinput8/tests/device.c
+4
-5
No files found.
dlls/dinput8/tests/device.c
View file @
21e3ba96
...
...
@@ -627,18 +627,17 @@ static void test_mouse_keyboard(void)
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
"
);
ok
(
i
==
lstrlenW
(
L"DIEmWin"
),
"GetClassName returned incorrect length
\n
"
);
ok
(
!
lstrcmpW
(
L"DIEmWin"
,
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
"
);
ok
(
i
==
lstrlenW
(
L"DIEmWin"
),
"GetClassName returned incorrect length
\n
"
);
ok
(
!
lstrcmpW
(
L"DIEmWin"
,
str
),
"GetClassName returned incorrect name for this window's class
\n
"
);
}
hr
=
IDirectInputDevice8_Acquire
(
di_mouse
);
...
...
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