March 11, 2026
3:04 p.m.
Maotong Zhang (@xiaotong) commented about dlls/hidclass.sys/pnp.c:
fdo->base.hid.PhysicalDeviceObject );
RtlInitUnicodeString(&string, pdo_name); - if ((status = IoCreateDevice( device->DriverObject, sizeof(*pdo), &string, 0, 0, FALSE, &child_device ))) + if ((status = IoCreateDevice( device->DriverObject, sizeof(*pdo), &string, + FILE_DEVICE_UNKNOWN, FILE_AUTOGENERATED_DEVICE_NAME, FALSE, &child_device )))
It seems that 'FILE_AUTOGENERATED_DEVICE_NAME' should not be used here. It should probably remain 0, since the previous ‘string‘ parameter already provides the device name. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10301#note_131843