VirtualBox

Changeset 8509 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 30, 2008 2:35:38 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30402
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.

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