VirtualBox

Changeset 1655 in vbox for trunk


Ignore:
Timestamp:
Mar 23, 2007 10:24:21 AM (18 years ago)
Author:
vboxsync
Message:

Discard write if nobody is listening.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp

    r1654 r1655  
    209209            DWORD uError = GetLastError();
    210210
     211            if (uError == ERROR_PIPE_LISTENING)
     212            {
     213                /* No connection yet; just discard the write. */
     214                cbWritten = *cbWrite;
     215            }
     216            else
    211217            if (uError != ERROR_IO_PENDING)
     218            {
    212219                rc = RTErrConvertFromWin32(uError);
    213 
    214             Log(("drvNamedPipeWrite: WriteFile returned %d (%Vrc)\n", uError, rc));
     220                Log(("drvNamedPipeWrite: WriteFile returned %d (%Vrc)\n", uError, rc));
     221            }
    215222        }
    216223
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