VirtualBox

vbox的更動 8509 路徑 trunk/src/VBox/Devices/Storage


忽略:
時間撮記:
2008-4-30 下午02:35:38 (17 年 以前)
作者:
vboxsync
訊息:

Fixed reversed parameter check creating VMDK. Harmless, as it caused autodetection of the geometry later.

檔案:
修改 1 筆資料

圖例:

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

    r8297 r8509  
    29972997    vmdkDescExtRemoveDummy(pImage, &pImage->Descriptor);
    29982998
    2999     if (    pPCHSGeometry->cCylinders == 0
    3000         ||  pPCHSGeometry->cHeads == 0
    3001         ||  pPCHSGeometry->cSectors == 0)
     2999    if (    pPCHSGeometry->cCylinders != 0
     3000        &&  pPCHSGeometry->cHeads != 0
     3001        &&  pPCHSGeometry->cSectors != 0)
    30023002    {
    30033003        rc = vmdkDescSetPCHSGeometry(pImage, pPCHSGeometry);
     
    30053005            goto out;
    30063006    }
    3007     if (    pLCHSGeometry->cCylinders == 0
    3008         ||  pLCHSGeometry->cHeads == 0
    3009         ||  pLCHSGeometry->cSectors == 0)
     3007    if (    pLCHSGeometry->cCylinders != 0
     3008        &&  pLCHSGeometry->cHeads != 0
     3009        &&  pLCHSGeometry->cSectors != 0)
    30103010    {
    30113011        rc = vmdkDescSetLCHSGeometry(pImage, pLCHSGeometry);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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