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>
This commit is contained in:
Zebediah Figura 2021-04-15 21:03:59 -05:00 committed by Alexandre Julliard
parent e30a14525e
commit a85d0f576a
2 changed files with 0 additions and 8 deletions

View File

@ -62,8 +62,6 @@ NTSTATUS HID_CreateDevice(DEVICE_OBJECT *native_device, HID_MINIDRIVER_REGISTRAT
ext->deviceExtension.MiniDeviceExtension = ext + 1; ext->deviceExtension.MiniDeviceExtension = ext + 1;
ext->deviceExtension.PhysicalDeviceObject = *device; ext->deviceExtension.PhysicalDeviceObject = *device;
ext->deviceExtension.NextDeviceObject = native_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; ext->link_name.Buffer = NULL;
IoAttachDeviceToDeviceStack(*device, native_device); IoAttachDeviceToDeviceStack(*device, native_device);
@ -86,7 +84,6 @@ NTSTATUS HID_LinkDevice(DEVICE_OBJECT *device)
{ {
WCHAR device_instance_id[MAX_DEVICE_ID_LEN]; WCHAR device_instance_id[MAX_DEVICE_ID_LEN];
SP_DEVINFO_DATA Data; SP_DEVINFO_DATA Data;
UNICODE_STRING nameW;
NTSTATUS status; NTSTATUS status;
HDEVINFO devinfo; HDEVINFO devinfo;
GUID hidGuid; GUID hidGuid;
@ -95,8 +92,6 @@ NTSTATUS HID_LinkDevice(DEVICE_OBJECT *device)
HidD_GetHidGuid(&hidGuid); HidD_GetHidGuid(&hidGuid);
ext = device->DeviceExtension; ext = device->DeviceExtension;
RtlInitUnicodeString( &nameW, ext->device_name);
lstrcpyW(device_instance_id, ext->device_id); lstrcpyW(device_instance_id, ext->device_id);
lstrcatW(device_instance_id, L"\\"); lstrcatW(device_instance_id, L"\\");
lstrcatW(device_instance_id, ext->instance_id); lstrcatW(device_instance_id, ext->instance_id);
@ -220,8 +215,6 @@ void HID_DeleteDevice(DEVICE_OBJECT *device)
IoCompleteRequest(irp, IO_NO_INCREMENT); 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); RtlFreeUnicodeString(&ext->link_name);
IoDetachDevice(ext->deviceExtension.NextDeviceObject); IoDetachDevice(ext->deviceExtension.NextDeviceObject);

View File

@ -44,7 +44,6 @@ typedef struct _BASE_DEVICE_EXTENSION {
WINE_HIDP_PREPARSED_DATA *preparseData; WINE_HIDP_PREPARSED_DATA *preparseData;
ULONG poll_interval; ULONG poll_interval;
WCHAR *device_name;
UNICODE_STRING link_name; UNICODE_STRING link_name;
WCHAR device_id[MAX_DEVICE_ID_LEN]; WCHAR device_id[MAX_DEVICE_ID_LEN];
WCHAR instance_id[MAX_DEVICE_ID_LEN]; WCHAR instance_id[MAX_DEVICE_ID_LEN];