VirtualBox

vbox的更動 34560 路徑 trunk/src/VBox/Runtime/common


忽略:
時間撮記:
2010-12-1 上午11:05:54 (14 年 以前)
作者:
vboxsync
訊息:

vfsmemory.cpp: list bugfix (grumble, even with RTList* linked lists are easy to get wrong).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp

    r34535 r34560  
    183183    {
    184184        Assert(pExtent->off <= off);
    185         PRTVFSMEMEXTENT pNext = RTListNodeGetNext(&pExtent->Entry, RTVFSMEMEXTENT, Entry);
    186         if (   RTListNodeIsLast(&pThis->ExtentHead, &pNext->Entry)
     185        PRTVFSMEMEXTENT pNext = RTListGetNext(&pThis->ExtentHead, pExtent, RTVFSMEMEXTENT, Entry);
     186        if (   !pNext
    187187            || pNext->off > off)
    188188        {
     
    223223    if (off - pExtent->off >= pExtent->cb)
    224224    {
    225         pExtent = RTListNodeGetNext(&pExtent->Entry, RTVFSMEMEXTENT, Entry);
     225        pExtent = RTListGetNext(&pThis->ExtentHead, pExtent, RTVFSMEMEXTENT, Entry);
    226226        if (   !pExtent
    227227            || off - pExtent->off >= pExtent->cb)
     
    759759                pThis->cbExtent = _4K;
    760760            else if (ObjInfo.cbObject < RTVFSMEM_MAX_EXTENT_SIZE)
    761                 pThis->cbExtent = _4K;
     761                pThis->cbExtent = _4K /* ObjInfo.cbObject */;
    762762            else
    763763                pThis->cbExtent = RTVFSMEM_MAX_EXTENT_SIZE;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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