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
cbbb88f2
Commit
cbbb88f2
authored
May 16, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Add a zero-terminator for hardware ids (Valgrind).
parent
428c4afe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hid.c
dlls/dinput/tests/hid.c
+3
-3
No files found.
dlls/dinput/tests/hid.c
View file @
cbbb88f2
...
...
@@ -591,7 +591,7 @@ static BOOL find_hid_device_path( WCHAR *device_path )
BOOL
bus_device_start
(
void
)
{
static
const
WCHAR
bus_hardware_id
[]
=
L"WINETEST
\\
BUS
"
;
static
const
WCHAR
bus_hardware_id
s
[]
=
L"WINETEST
\\
BUS
\0
"
;
SP_DEVINFO_DATA
device
=
{
sizeof
(
SP_DEVINFO_DATA
)};
const
WCHAR
*
service_name
=
L"winetest_bus"
;
WCHAR
path
[
MAX_PATH
],
filename
[
MAX_PATH
];
...
...
@@ -666,7 +666,7 @@ BOOL bus_device_start(void)
ret
=
SetupDiCreateDeviceInfoW
(
set
,
L"root
\\
winetest
\\
0"
,
&
GUID_NULL
,
NULL
,
NULL
,
0
,
&
device
);
ok
(
ret
,
"failed to create device, error %#lx
\n
"
,
GetLastError
()
);
ret
=
SetupDiSetDeviceRegistryPropertyW
(
set
,
&
device
,
SPDRP_HARDWAREID
,
(
const
BYTE
*
)
bus_hardware_id
,
sizeof
(
bus_hardware_id
)
);
ret
=
SetupDiSetDeviceRegistryPropertyW
(
set
,
&
device
,
SPDRP_HARDWAREID
,
(
const
BYTE
*
)
bus_hardware_id
s
,
sizeof
(
bus_hardware_ids
)
);
ok
(
ret
,
"failed to create set hardware ID, error %lu
\n
"
,
GetLastError
()
);
ret
=
SetupDiCallClassInstaller
(
DIF_REGISTERDEVICE
,
set
,
&
device
);
...
...
@@ -677,7 +677,7 @@ BOOL bus_device_start(void)
GetFullPathNameW
(
L"winetest.inf"
,
ARRAY_SIZE
(
path
),
path
,
NULL
);
ret
=
UpdateDriverForPlugAndPlayDevicesW
(
NULL
,
bus_hardware_id
,
path
,
INSTALLFLAG_FORCE
,
&
need_reboot
);
ret
=
UpdateDriverForPlugAndPlayDevicesW
(
NULL
,
bus_hardware_id
s
,
path
,
INSTALLFLAG_FORCE
,
&
need_reboot
);
ok
(
ret
,
"failed to install device, error %lu
\n
"
,
GetLastError
()
);
ok
(
!
need_reboot
,
"expected no reboot necessary
\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