VirtualBox

忽略:
時間撮記:
2008-10-23 上午06:02:08 (16 年 以前)
作者:
vboxsync
訊息:

the return value of ASMAtomicCmpXchg* is bool not rc

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/HostServices/SharedClipboard/x11.cpp

    r13454 r13509  
    206206
    207207    /* Only one of the guest and the host should be waiting at any one time */
    208     if (RT_FAILURE(ASMAtomicCmpXchgU32(&pCtx->waiter, 1, 0)))
     208    if (!ASMAtomicCmpXchgU32(&pCtx->waiter, 1, 0))
    209209    {
    210210        LogRel(("vboxClipboardReadDataFromClient: deadlock situation - the host and the guest are both waiting for data from the other.\n"));
     
    14041404        }
    14051405        /* Only one of the host and the guest should ever be waiting. */
    1406         if (RT_FAILURE(ASMAtomicCmpXchgU32(&g_ctx.waiter, 1, 0)))
     1406        if (!ASMAtomicCmpXchgU32(&g_ctx.waiter, 1, 0))
    14071407        {
    14081408            LogRel(("vboxClipboardReadData: detected a deadlock situation - the host and the guest are waiting for each other.\n"));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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