VirtualBox

Changeset 69710 in vbox for trunk


Ignore:
Timestamp:
Nov 16, 2017 11:12:36 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: VM settings: Shared Folders page: Fixing potential hang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r68435 r69710  
    213213        {
    214214            iTextWidth = fm.width(strOneString);
    215             if (iTextWidth + iIndentSize > cWidth)
     215            if (   iTextWidth
     216                && (iTextWidth + iIndentSize > cWidth))
    216217            {
    217218                iStart = 0;
     
    249250            }
    250251        }
    251         while (iTextWidth + iIndentSize > cWidth);
     252        while (   iTextWidth
     253               && (iTextWidth + iIndentSize > cWidth));
    252254
    253255        if (iPosition || m_enmFormat == FormatType_EllipsisFile)
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