cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.91k stars 344 forks source link

bad IF condition in process_reset_pipe(...) from /driver/stub/stub_write.c #321

Open Kogotoro opened 1 year ago

Kogotoro commented 1 year ago
    if (NT_SUCCESS(reset_pipe(devstub, info_pipe->PipeHandle)))
        reply_stub_req_data(devstub, hdr->base.seqnum, NULL, 0, FALSE);
    else
        reply_stub_req_err(devstub, USBIP_RET_SUBMIT, hdr->base.seqnum, -8);

but ..reset_pipe() returns TRUE(1) or FALSE(0), and NT_SUCCESS(0) = TRUE same as NTSUCCESS(1) = TRUE --?