VirtualBox

儲存庫 vbox 的更動 62756


忽略:
時間撮記:
2016-7-30 下午04:44:43 (8 年 以前)
作者:
vboxsync
訊息:

vmdkDescSetStr: Splitting a expression according to operator percedence is much more readable.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Storage/VMDK.cpp

    r62755 r62756  
    14911491            ssize_t cbDiff = cbNewVal - cbOldVal;
    14921492            /* Check for buffer overflow. */
    1493             if (    pDescriptor->aLines[pDescriptor->cLines]
    1494                 -   pDescriptor->aLines[0] > (ptrdiff_t)pDescriptor->cbDescAlloc - cbDiff)
     1493            if (  pDescriptor->aLines[pDescriptor->cLines] - pDescriptor->aLines[0]
     1494                > (ptrdiff_t)pDescriptor->cbDescAlloc - cbDiff)
    14951495                return vdIfError(pImage->pIfError, VERR_BUFFER_OVERFLOW, RT_SRC_POS, N_("VMDK: descriptor too big in '%s'"), pImage->pszFilename);
    14961496
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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