VirtualBox

Changeset 31041 in vbox


Ignore:
Timestamp:
Jul 23, 2010 8:56:28 AM (15 years ago)
Author:
vboxsync
Message:

fixed RT_CLAMP usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r31025 r31041  
    13071307            if (RT_SUCCESS(rc))
    13081308            {
    1309                 RT_CLAMP(cMappings, 0, 64); /* Maximum mappings, see shflsvc.h */
     1309                /* Maximum mappings, see shflsvc.h */
     1310                if (cMappings > 64)
     1311                    cMappings = 64;
    13101312                RTPrintf("Shared Folder Mappings (%u):\n\n", cMappings);
    13111313                for (uint32_t i = 0; i < cMappings; i++)
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