VirtualBox

Changeset 70637 in vbox


Ignore:
Timestamp:
Jan 19, 2018 10:02:45 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120365
Message:

RTFileCopyByHandlesEx: Make sure we don't pass 100%. bugref:9099

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/fileio.cpp

    r69111 r70637  
    501501                    /* advance */
    502502                    off += cbBlock;
    503                     if (pfnProgress && offNextPercent < off)
     503                    if (pfnProgress && offNextPercent < off && uPercentage < 100)
    504504                    {
    505                         while (offNextPercent < off)
     505                        do
    506506                        {
    507507                            uPercentage++;
    508508                            offNextPercent += cbPercent;
    509                         }
     509                        } while (offNextPercent < off && uPercentage < 100)
    510510                        rc = pfnProgress(uPercentage, pvUser);
    511511                        if (RT_FAILURE(rc))
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