UsbDk: Always delete old pipes information on reconfiguration
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
parent
d76d90125c
commit
00faeaa3bd
1 changed files with 2 additions and 1 deletions
|
|
@ -40,13 +40,14 @@ NTSTATUS CWdfUsbInterface::SetAltSetting(ULONG64 AltSettingIdx)
|
|||
return status;
|
||||
}
|
||||
|
||||
m_Pipes.reset();
|
||||
|
||||
m_NumPipes = WdfUsbInterfaceGetNumConfiguredPipes(m_Interface);
|
||||
if (m_NumPipes == 0)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
m_Pipes.destroy();
|
||||
m_Pipes = new CWdfUsbPipe[m_NumPipes];
|
||||
if (!m_Pipes)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue