From 1447b8d476baff021cb3cd57161efc1df529058b Mon Sep 17 00:00:00 2001 From: Dmitry Fleytman Date: Sun, 27 Apr 2014 18:19:08 +0300 Subject: [PATCH] UsbDk: disable maximum packet size check for pipes It's up to client to send packets of allowed size. Signed-off-by: Dmitry Fleytman --- UsbDk/UsbTarget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UsbDk/UsbTarget.cpp b/UsbDk/UsbTarget.cpp index 7c57edc..80f7432 100644 --- a/UsbDk/UsbTarget.cpp +++ b/UsbDk/UsbTarget.cpp @@ -172,6 +172,7 @@ void CWdfUsbPipe::Create(WDFUSBINTERFACE Interface, UCHAR PipeIndex) m_Pipe = WdfUsbInterfaceGetConfiguredPipe(m_Interface, PipeIndex, &m_Info); ASSERT(m_Pipe != nullptr); + WdfUsbTargetPipeSetNoMaximumPacketSizeCheck(m_Pipe); } void CWdfUsbPipe::Read(CWdfRequest &Request, WDFMEMORY Buffer)