VirtualBox

Changeset 25656 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jan 5, 2010 3:39:46 PM (15 years ago)
Author:
vboxsync
Message:

nitpicking.

File:
1 edited

Legend:

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

    r25638 r25656  
    191191#endif
    192192    }
    193     int rc = WaitForSingleObjectEx(pThis->hMtx,
    194                                    cMillies == RT_INDEFINITE_WAIT ? INFINITE : cMillies,
    195                                    TRUE /*bAlertable*/);
     193    DWORD rc = WaitForSingleObjectEx(pThis->hMtx,
     194                                     cMillies == RT_INDEFINITE_WAIT ? INFINITE : cMillies,
     195                                     TRUE /*fAlertable*/);
    196196    RTThreadUnblocked(hThreadSelf, RTTHREADSTATE_MUTEX);
    197197    switch (rc)
     
    209209        case WAIT_ABANDONED:        return VERR_SEM_OWNER_DIED;
    210210        default:
     211            AssertMsgFailed(("%u\n",  rc));
     212        case WAIT_FAILED:
    211213        {
     214            int rc2 = RTErrConvertFromWin32(GetLastError());
    212215            AssertMsgFailed(("Wait on MutexSem %p failed, rc=%d lasterr=%d\n", MutexSem, rc, GetLastError()));
    213             int rc2 = RTErrConvertFromWin32(GetLastError());
    214             if (rc2 != 0)
     216            if (rc2 != VINF_SUCCESS)
    215217                return rc2;
    216218
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