VirtualBox

Changeset 12924 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Oct 2, 2008 10:18:50 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37336
Message:

warnings, fixed undefined retval

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r12743 r12924  
    16061606    int rc;
    16071607
    1608     AssertReturn(iRegion <= 2 && enmType == PCI_ADDRESS_SPACE_MEM || enmType == PCI_ADDRESS_SPACE_MEM_PREFETCH, VERR_INTERNAL_ERROR);
     1608    AssertReturn((iRegion <= 2 && enmType == PCI_ADDRESS_SPACE_MEM) || enmType == PCI_ADDRESS_SPACE_MEM_PREFETCH, VERR_INTERNAL_ERROR);
    16091609    Assert(pThis->pVMMDevRAMR3 != NULL);
    16101610    Assert(pThis->pVMMDevHeapR3 != NULL);
     
    16301630        }
    16311631    }
    1632     else
    1633     if (iRegion == 2)
     1632    else if (iRegion == 2)
    16341633    {
    16351634        if (GCPhysAddress != NIL_RTGCPHYS)
     
    16541653        }
    16551654    }
     1655    else
     1656        rc = VERR_INVALID_PARAMETER;
    16561657
    16571658    return rc;
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