VirtualBox

Changeset 36742 in vbox


Ignore:
Timestamp:
Apr 20, 2011 9:54:21 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71273
Message:

VBoxManage/GuestCtrl: Adjusted assertion, warn if not all elements could be copied.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r36726 r36742  
    13211321            uCurObject++;
    13221322        }
    1323         Assert(cTotalObjects == uCurObject - 1);
    1324 
    1325         if (RT_SUCCESS(vrc) && fVerbose)
     1323
     1324        Assert(cTotalObjects >= uCurObject - 1);
     1325        if (cTotalObjects != uCurObject - 1)
     1326            RTPrintf("Warning: %u elements instead of %ld were copied!\n",
     1327                     uCurObject - 1, cTotalObjects);
     1328        else if (RT_SUCCESS(vrc) && fVerbose)
    13261329            RTPrintf("Copy operation successful!\n");
    13271330    }
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