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
5912d0fa
Commit
5912d0fa
authored
May 06, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input: Use case insensitive compare when looking for devices.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c3c11d08
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
provider.c
dlls/windows.gaming.input/provider.c
+4
-3
No files found.
dlls/windows.gaming.input/provider.c
View file @
5912d0fa
...
...
@@ -572,7 +572,7 @@ void provider_create( const WCHAR *device_path )
EnterCriticalSection
(
&
provider_cs
);
LIST_FOR_EACH_ENTRY
(
entry
,
&
provider_list
,
struct
provider
,
entry
)
if
((
found
=
!
wcscmp
(
entry
->
device_path
,
device_path
)))
break
;
if
((
found
=
!
wcs
i
cmp
(
entry
->
device_path
,
device_path
)))
break
;
if
(
!
found
)
list_add_tail
(
&
provider_list
,
&
impl
->
entry
);
LeaveCriticalSection
(
&
provider_cs
);
...
...
@@ -592,11 +592,12 @@ void provider_remove( const WCHAR *device_path )
EnterCriticalSection
(
&
provider_cs
);
LIST_FOR_EACH_ENTRY
(
entry
,
&
provider_list
,
struct
provider
,
entry
)
if
((
found
=
!
wcscmp
(
entry
->
device_path
,
device_path
)))
break
;
if
((
found
=
!
wcs
i
cmp
(
entry
->
device_path
,
device_path
)))
break
;
if
(
found
)
list_remove
(
&
entry
->
entry
);
LeaveCriticalSection
(
&
provider_cs
);
if
(
found
)
if
(
!
found
)
WARN
(
"provider not found for device %s
\n
"
,
debugstr_w
(
device_path
)
);
else
{
provider
=
&
entry
->
IGameControllerProvider_iface
;
manager_on_provider_removed
(
provider
);
...
...
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