VirtualBox

忽略:
時間撮記:
2025-1-6 下午05:01:30 (2 月 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
166480
訊息:

Devices/Security: Fix some harmless repeated expansion of macro argument with side-effects parfait warnings (the called functions don't have side effects), bugref:3409

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Security/DrvTpmEmu.cpp

    r106259 r107428  
    961961
    962962    /* Limit to the maximum buffer size of the device above. */
    963     pThis->cbBuffer = RT_MIN(pThis->cbBuffer, pThis->pTpmPort->pfnGetMaxBufferSize(pThis->pTpmPort));
     963    uint32_t const cbTpmBufferMax = pThis->pTpmPort->pfnGetMaxBufferSize(pThis->pTpmPort);
     964    pThis->cbBuffer = RT_MIN(pThis->cbBuffer, cbTpmBufferMax);
    964965
    965966    /* Set the buffer size. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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