VirtualBox

Changeset 1678 in vbox for trunk/src/VBox/Devices/Serial


Ignore:
Timestamp:
Mar 23, 2007 1:27:23 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19814
Message:

Lost connection case.

File:
1 edited

Legend:

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

    r1677 r1678  
    120120            DWORD uError = GetLastError();
    121121
    122             if (uError == ERROR_PIPE_LISTENING)
    123             {
    124                 /* nobody connected yet */
     122            if (   uError == ERROR_PIPE_LISTENING
     123                || uError == ERROR_PIPE_NOT_CONNECTED)
     124            {
     125                /* No connection yet/anymore */
    125126                cbReallyRead = 0;
    126127
     
    216217            DWORD uError = GetLastError();
    217218
    218             if (uError == ERROR_PIPE_LISTENING)
    219             {
    220                 /* No connection yet; just discard the write. */
     219            if (   uError == ERROR_PIPE_LISTENING
     220                || uError == ERROR_PIPE_NOT_CONNECTED)
     221            {
     222                /* No connection yet/anymore; just discard the write. */
    221223                cbWritten = *cbWrite;
    222224            }
Note: See TracChangeset for help on using the changeset viewer.

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