Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
64ee2380
Commit
64ee2380
authored
Oct 07, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
21e3ba96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
joystick.c
dlls/dinput/tests/joystick.c
+2
-6
No files found.
dlls/dinput/tests/joystick.c
View file @
64ee2380
...
@@ -405,17 +405,13 @@ static BOOL CALLBACK EnumJoysticks(const DIDEVICEINSTANCEA *lpddi, void *pvRef)
...
@@ -405,17 +405,13 @@ static BOOL CALLBACK EnumJoysticks(const DIDEVICEINSTANCEA *lpddi, void *pvRef)
ok
(
SUCCEEDED
(
hr
),
"IDirectInput_GetProperty() for DIPROP_GUIDANDPATH failed: %08x
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInput_GetProperty() for DIPROP_GUIDANDPATH failed: %08x
\n
"
,
hr
);
{
{
static
const
WCHAR
formatW
[]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
,
'%'
,
'*'
,
'['
,
'^'
,
'#'
,
']'
,
'#'
,
'v'
,
'i'
,
'd'
,
'_'
,
'%'
,
'0'
,
'4'
,
'x'
,
'&'
,
'p'
,
'i'
,
'd'
,
'_'
,
'%'
,
'0'
,
'4'
,
'x'
,
0
};
static
const
WCHAR
miW
[]
=
{
'm'
,
'i'
,
'_'
,
0
};
static
const
WCHAR
igW
[]
=
{
'i'
,
'g'
,
'_'
,
0
};
int
vid
,
pid
;
int
vid
,
pid
;
_wcslwr
(
dpg
.
wszPath
);
_wcslwr
(
dpg
.
wszPath
);
count
=
swscanf
(
dpg
.
wszPath
,
formatW
,
&
vid
,
&
pid
);
count
=
swscanf
(
dpg
.
wszPath
,
L"
\\\\
?
\\
%*[^#]#vid_%04x&pid_%04x"
,
&
vid
,
&
pid
);
ok
(
count
==
2
,
"DIPROP_GUIDANDPATH path has wrong format. Expected count: 2 Got: %i Path: %s
\n
"
,
ok
(
count
==
2
,
"DIPROP_GUIDANDPATH path has wrong format. Expected count: 2 Got: %i Path: %s
\n
"
,
count
,
wine_dbgstr_w
(
dpg
.
wszPath
));
count
,
wine_dbgstr_w
(
dpg
.
wszPath
));
ok
(
wcsstr
(
dpg
.
wszPath
,
miW
)
!=
0
||
wcsstr
(
dpg
.
wszPath
,
igW
)
!=
0
,
ok
(
wcsstr
(
dpg
.
wszPath
,
L"mi_"
)
!=
0
||
wcsstr
(
dpg
.
wszPath
,
L"ig_"
)
!=
0
,
"DIPROP_GUIDANDPATH path should contain either 'ig_' or 'mi_' substring. Path: %s
\n
"
,
"DIPROP_GUIDANDPATH path should contain either 'ig_' or 'mi_' substring. Path: %s
\n
"
,
wine_dbgstr_w
(
dpg
.
wszPath
));
wine_dbgstr_w
(
dpg
.
wszPath
));
}
}
...
...
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