VirtualBox

Changeset 36531 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 4, 2011 2:05:09 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70956
Message:

Main/GuestCtrl: Take empty files into account when checking for write result.

File:
1 edited

Legend:

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

    r36326 r36531  
    419419                                 * everything.
    420420                                 */
    421                                 if (!cbTransfered)
     421                                if (   cbSize > 0
     422                                    && cbTransfered == 0)
    422423                                {
    423                                     /* If nothing was transfered this means "vbox_cat" wasn't able to write
     424                                    /* If nothing was transfered but the file size was > 0 then "vbox_cat" wasn't able to write
    424425                                     * to the destination -> access denied. */
    425426                                    rc = TaskGuest::setProgressErrorInfo(VBOX_E_IPRT_ERROR, aTask->progress,
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