• Reilly Grant's avatar
    Fix bulk/interrupt transfers in the new Windows USB backend · 20ed0889
    Reilly Grant authored
    This change fixes a number of issues with sending bulk and interrupt
    transfers to a USB device using the new Windows backend.
    
    * Posting completion callbacks to the proper thread (a requirement for
      DevTools) has been fixed.
    * Overlapped I/O results are now read using the correct method
      (WinUsb_GetOverlappedResult) and from the correct handle.
    * Aborting transfers on handle close no longer results in a double-free.
    
    Bug: 637404
    Change-Id: I4fdb254e4ea6e9cbf7d764f588c94d698d61cb02
    Reviewed-on: https://chromium-review.googlesource.com/c/1313828
    Commit-Queue: Reilly Grant <reillyg@chromium.org>
    Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604827}
    20ed0889
usb_device_handle_win.cc 25.1 KB