VirtualBox

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


Ignore:
Timestamp:
Oct 6, 2015 9:55:38 AM (9 years ago)
Author:
vboxsync
Message:

be on the safe side and check the index first

File:
1 edited

Legend:

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

    r54971 r58043  
    570570            {
    571571                aProperties.resize(cProperties);
    572                 for (size_t i = 0; papszNames[i] != NULL && i < cProperties; ++i)
     572                for (size_t i = 0; i < cProperties && papszNames[i] != NULL; ++i)
    573573                {
    574574                     aProperties[i] = papszNames[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