UsbDk: Test control device queue allocation result

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Dmitry Fleytman 2014-03-30 09:38:43 +03:00
parent 871bbe335c
commit 84a2ef8762

View file

@ -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))
{