Skip to content

Commit 0ac0aeb

Browse files
committed
Generate a container id for each port device.
Generate a container id for each port device instead of using the null GUID, which is a reserved GUID. The use of the null GUID caused audio endpoint enumeration to fail in Windows 10. OXT-780 Signed-off-by: Troy Crosley <[email protected]>
1 parent efb3e24 commit 0ac0aeb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Drivers/xenvusb/UsbInterface.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,20 @@ RootHubIfCreateUsbDevice(
639639
PortStatus,
640640
hubContext->PortDevice.DeviceHandleRefCount);
641641

642+
// Give the port device a container Id.
643+
UUID randomUUID;
644+
NTSTATUS stat = ExUuidCreate(&randomUUID);
645+
646+
if (NT_SUCCESS(stat))
647+
{
648+
hubContext->PortDevice.ContainerId = randomUUID;
649+
}
650+
else
651+
{
652+
TraceEvents(TRACE_LEVEL_ERROR, TRACE_DEVICE,
653+
__FUNCTION__": Could not create container Id for device.\n");
654+
}
655+
642656
return STATUS_SUCCESS;
643657
}
644658

0 commit comments

Comments
 (0)