UsbDk: Test control device queue allocation result
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
parent
871bbe335c
commit
84a2ef8762
1 changed files with 6 additions and 0 deletions
|
|
@ -280,6 +280,12 @@ NTSTATUS CUsbDkControlDevice::Create(WDFDRIVER Driver)
|
|||
}
|
||||
|
||||
m_DeviceQueue = new CUsbDkControlDeviceQueue(*this, WdfIoQueueDispatchSequential);
|
||||
if (m_DeviceQueue == nullptr)
|
||||
{
|
||||
TraceEvents(TRACE_LEVEL_ERROR, TRACE_CONTROLDEVICE, "%!FUNC! Device queue allocation failed");
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
status = m_DeviceQueue->Create();
|
||||
if (NT_SUCCESS(status))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue