VirtualBox

Changeset 57636 in vbox for trunk


Ignore:
Timestamp:
Sep 7, 2015 10:55:18 AM (9 years ago)
Author:
vboxsync
Message:

RTPipeFromNative/win: Handle full duplex pipes without asserting and failing. (jpsoft tee)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/pipe-win.cpp

    r57358 r57636  
    518518                           || Info.NamedPipeState == FILE_PIPE_DISCONNECTED_STATE,
    519519                           VERR_INVALID_HANDLE);
    520                 AssertStmt(   Info.NamedPipeConfiguration
    521                            == (   Info.NamedPipeEnd == FILE_PIPE_SERVER_END
    522                                ? (pThis->fRead ? FILE_PIPE_INBOUND  : FILE_PIPE_OUTBOUND)
    523                                : (pThis->fRead ? FILE_PIPE_OUTBOUND : FILE_PIPE_INBOUND) ),
     520                AssertStmt(      Info.NamedPipeConfiguration
     521                              == (   Info.NamedPipeEnd == FILE_PIPE_SERVER_END
     522                                  ? (pThis->fRead ? FILE_PIPE_INBOUND  : FILE_PIPE_OUTBOUND)
     523                                  : (pThis->fRead ? FILE_PIPE_OUTBOUND : FILE_PIPE_INBOUND) )
     524                           || Info.NamedPipeConfiguration == FILE_PIPE_FULL_DUPLEX,
    524525                           VERR_INVALID_HANDLE);
    525526                if (   RT_SUCCESS(rc)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette