VirtualBox

Changeset 71849 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2018 12:32:44 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Added more cancellation code to copyTo/copyFrom tasks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r71847 r71849  
    165165        return VINF_SUCCESS;
    166166
    167     BOOL fCanceled;
    168167    BOOL fCompleted;
    169     if (   SUCCEEDED(mProgress->COMGETTER(Canceled(&fCanceled)))
    170         && !fCanceled
    171         && SUCCEEDED(mProgress->COMGETTER(Completed(&fCompleted)))
     168    if (   SUCCEEDED(mProgress->COMGETTER(Completed(&fCompleted)))
    172169        && !fCompleted)
    173170    {
     
    337334            break;
    338335    }
     336
     337    if (   SUCCEEDED(mProgress->COMGETTER(Canceled(&fCanceled)))
     338        && fCanceled)
     339        return VINF_SUCCESS;
    339340
    340341    if (RT_FAILURE(rc))
     
    10971098                break;
    10981099        }
     1100
     1101        BOOL fCanceled = FALSE;
     1102        if (   SUCCEEDED(mProgress->COMGETTER(Canceled(&fCanceled)))
     1103            && fCanceled)
     1104            break;
    10991105    }
    11001106
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