VirtualBox

Changeset 31942 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 24, 2010 9:53:00 PM (14 years ago)
Author:
vboxsync
Message:

Runtime/poll: Fix retrieving events after WaitForMultipleObjects

File:
1 edited

Legend:

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

    r31454 r31942  
    209209     * Get event (if pending) and do wait cleanup.
    210210     */
     211    /** @todo r=aeichner: The loop below overwrites events if
     212     *  more than one source has events pending.
     213     */
    211214    i = cHandles;
    212215    while (i-- > 0)
     
    216219        {
    217220            case RTHANDLETYPE_PIPE:
    218                 rtPipePollDone(pThis->aHandles[i].u.hPipe, pThis->aHandles[i].fEvents,
    219                                pThis->aHandles[i].fFinalEntry);
     221                fEvents = rtPipePollDone(pThis->aHandles[i].u.hPipe, pThis->aHandles[i].fEvents,
     222                                         pThis->aHandles[i].fFinalEntry);
    220223                break;
    221224
    222225            case RTHANDLETYPE_SOCKET:
    223                 rtSocketPollDone(pThis->aHandles[i].u.hSocket, pThis->aHandles[i].fEvents,
    224                                  pThis->aHandles[i].fFinalEntry);
     226                fEvents = rtSocketPollDone(pThis->aHandles[i].u.hSocket, pThis->aHandles[i].fEvents,
     227                                           pThis->aHandles[i].fFinalEntry);
    225228                break;
    226229
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