VirtualBox

Changeset 45584 in vbox for trunk/src


Ignore:
Timestamp:
Apr 17, 2013 9:47:57 AM (12 years ago)
Author:
vboxsync
Message:

Main/MediumFormat: fix regression in the rewrite which was part of the API wrapper generator introduction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumFormatImpl.cpp

    r45518 r45584  
    219219        tmp &= 1ULL << i;
    220220        if (tmp)
    221             aCapabilities[cCapabilities] = (MediumFormatCapabilities_T)tmp;
    222     }
    223     aCapabilities.resize(RT_MIN(cCapabilities, 1));
     221            aCapabilities[cCapabilities++] = (MediumFormatCapabilities_T)tmp;
     222    }
     223    aCapabilities.resize(RT_MAX(cCapabilities, 1));
    224224
    225225    return S_OK;
Note: See TracChangeset for help on using the changeset viewer.

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