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
a448ae89
Commit
a448ae89
authored
May 02, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use GUID_DEVINTERFACE_HID directly.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
parent
c55980a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
rawinput.c
dlls/user32/rawinput.c
+3
-5
No files found.
dlls/user32/rawinput.c
View file @
a448ae89
...
...
@@ -38,6 +38,7 @@
#include "user_private.h"
#include "initguid.h"
#include "ddk/hidclass.h"
#include "devpkey.h"
#include "ntddmou.h"
#include "ntddkbd.h"
...
...
@@ -224,14 +225,11 @@ void rawinput_update_device_list(void)
{
SP_DEVICE_INTERFACE_DATA
iface
=
{
sizeof
(
iface
)
};
struct
device
*
device
;
GUID
hid_guid
;
HDEVINFO
set
;
DWORD
idx
;
TRACE
(
"
\n
"
);
HidD_GetHidGuid
(
&
hid_guid
);
EnterCriticalSection
(
&
rawinput_devices_cs
);
/* destroy previous list */
...
...
@@ -243,9 +241,9 @@ void rawinput_update_device_list(void)
}
rawinput_devices_count
=
0
;
set
=
SetupDiGetClassDevsW
(
&
hid_guid
,
NULL
,
NULL
,
DIGCF_DEVICEINTERFACE
|
DIGCF_PRESENT
);
set
=
SetupDiGetClassDevsW
(
&
GUID_DEVINTERFACE_HID
,
NULL
,
NULL
,
DIGCF_DEVICEINTERFACE
|
DIGCF_PRESENT
);
for
(
idx
=
0
;
SetupDiEnumDeviceInterfaces
(
set
,
NULL
,
&
hid_guid
,
idx
,
&
iface
);
++
idx
)
for
(
idx
=
0
;
SetupDiEnumDeviceInterfaces
(
set
,
NULL
,
&
GUID_DEVINTERFACE_HID
,
idx
,
&
iface
);
++
idx
)
{
if
(
!
(
device
=
add_device
(
set
,
&
iface
,
RIM_TYPEHID
)))
continue
;
...
...
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