VirtualBox

Changeset 56907 in vbox


Ignore:
Timestamp:
Jul 9, 2015 6:05:19 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101593
Message:

DnD/Main: GuestDnDSourceImpl.cpp: Compare incoming and previously announced sizes, logging.

File:
1 edited

Legend:

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

    r56782 r56907  
    604604            && !pCtx->mURI.objURI.IsComplete())
    605605        {
    606             LogFlowFunc(("Warning: Object '%s' not complete yet\n", pCtx->mURI.objURI.GetDestPath().c_str()));
     606            AssertMsgFailed(("Object '%s' not complete yet\n", pCtx->mURI.objURI.GetDestPath().c_str()));
     607            rc = VERR_WRONG_ORDER;
     608            break;
     609        }
     610
     611        if (pCtx->mURI.objURI.IsOpen()) /* File already opened? */
     612        {
     613            AssertMsgFailed(("Current opened object is '%s', close this first\n", pCtx->mURI.objURI.GetDestPath().c_str()));
     614            rc = VERR_WRONG_ORDER;
     615            break;
     616        }
     617
     618        if (cbSize > pCtx->mData.cbToProcess)
     619        {
     620            AssertMsgFailed(("File size (%RU64) exceeds total size to transfer (%RU64)\n", cbSize, pCtx->mData.cbToProcess));
    607621            rc = VERR_INVALID_PARAMETER;
    608             break;
    609         }
    610 
    611         if (pCtx->mURI.objURI.IsOpen()) /* File already opened? */
    612         {
    613             LogFlowFunc(("Warning: Current opened object is '%s'\n", pCtx->mURI.objURI.GetDestPath().c_str()));
    614             rc = VERR_WRONG_ORDER;
    615622            break;
    616623        }
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