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
a85d0f57
Commit
a85d0f57
authored
Apr 15, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Remove the unused device_name field.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e30a1452
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
device.c
dlls/hidclass.sys/device.c
+0
-7
hid.h
dlls/hidclass.sys/hid.h
+0
-1
No files found.
dlls/hidclass.sys/device.c
View file @
a85d0f57
...
...
@@ -62,8 +62,6 @@ NTSTATUS HID_CreateDevice(DEVICE_OBJECT *native_device, HID_MINIDRIVER_REGISTRAT
ext
->
deviceExtension
.
MiniDeviceExtension
=
ext
+
1
;
ext
->
deviceExtension
.
PhysicalDeviceObject
=
*
device
;
ext
->
deviceExtension
.
NextDeviceObject
=
native_device
;
ext
->
device_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
dev_name
)
+
1
)
*
sizeof
(
WCHAR
));
lstrcpyW
(
ext
->
device_name
,
dev_name
);
ext
->
link_name
.
Buffer
=
NULL
;
IoAttachDeviceToDeviceStack
(
*
device
,
native_device
);
...
...
@@ -86,7 +84,6 @@ NTSTATUS HID_LinkDevice(DEVICE_OBJECT *device)
{
WCHAR
device_instance_id
[
MAX_DEVICE_ID_LEN
];
SP_DEVINFO_DATA
Data
;
UNICODE_STRING
nameW
;
NTSTATUS
status
;
HDEVINFO
devinfo
;
GUID
hidGuid
;
...
...
@@ -95,8 +92,6 @@ NTSTATUS HID_LinkDevice(DEVICE_OBJECT *device)
HidD_GetHidGuid
(
&
hidGuid
);
ext
=
device
->
DeviceExtension
;
RtlInitUnicodeString
(
&
nameW
,
ext
->
device_name
);
lstrcpyW
(
device_instance_id
,
ext
->
device_id
);
lstrcatW
(
device_instance_id
,
L"
\\
"
);
lstrcatW
(
device_instance_id
,
ext
->
instance_id
);
...
...
@@ -220,8 +215,6 @@ void HID_DeleteDevice(DEVICE_OBJECT *device)
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
}
TRACE
(
"Delete device(%p) %s
\n
"
,
device
,
debugstr_w
(
ext
->
device_name
));
HeapFree
(
GetProcessHeap
(),
0
,
ext
->
device_name
);
RtlFreeUnicodeString
(
&
ext
->
link_name
);
IoDetachDevice
(
ext
->
deviceExtension
.
NextDeviceObject
);
...
...
dlls/hidclass.sys/hid.h
View file @
a85d0f57
...
...
@@ -44,7 +44,6 @@ typedef struct _BASE_DEVICE_EXTENSION {
WINE_HIDP_PREPARSED_DATA
*
preparseData
;
ULONG
poll_interval
;
WCHAR
*
device_name
;
UNICODE_STRING
link_name
;
WCHAR
device_id
[
MAX_DEVICE_ID_LEN
];
WCHAR
instance_id
[
MAX_DEVICE_ID_LEN
];
...
...
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