VirtualBox

Changeset 44376 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jan 25, 2013 1:35:31 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83346
Message:

The changes inside loops where enumeration MediumVariant is converted. For correct work under both systems Windows and Linux because enumeration is defined differently on these systems.

File:
1 edited

Legend:

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

    r44365 r44376  
    15431543    SafeArray<MediumVariant_T> variants(sizeof(MediumVariant_T)*8);
    15441544
    1545     for (unsigned int i = 0; i < variants.size(); ++i)
    1546     {
    1547         MediumVariant_T temp = m->variant;
    1548         variants [i] = (temp & (1<<i));
     1545    for (ulong i = 0; i < variants.size(); ++i)
     1546    {
     1547        ulong temp = m->variant;
     1548        temp &= 1<<i;
     1549        variants [i] = (MediumVariant_T)temp;
    15491550    }
    15501551
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