VirtualBox

Changeset 1662 in vbox


Ignore:
Timestamp:
Mar 23, 2007 10:44:55 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19795
Message:

Made writes blocking again.

File:
1 edited

Legend:

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

    r1661 r1662  
    7979    /* File handle of the named pipe. */
    8080    RTFILE              NamedPipe;
    81     /* Dummy overlapped structure. */
     81    /* Overlapped structure for writes. */
    8282    OVERLAPPED          OverlappedWrite;
    8383    /* Overlapped structure for reads. */
     
    134134                    /* Wait for incoming bytes. */
    135135                    if (GetOverlappedResult((HANDLE)pData->NamedPipe, &pData->OverlappedRead, (DWORD *)&cbReallyRead, TRUE) == FALSE)
    136                     {
    137136                        uError = GetLastError();
    138                     }
    139137                }
    140138
     
    225223            }
    226224            else
    227                 cbWritten = *cbWrite;
     225            {
     226                /* Wait for the write to complete. */
     227                if (GetOverlappedResult((HANDLE)pData->NamedPipe, &pData->OverlappedWrite, (DWORD *)&cbWritten, TRUE) == FALSE)
     228                    uError = GetLastError();
     229            }
    228230        }
    229231        else
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