VirtualBox

Changeset 42758 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 10, 2012 3:19:09 PM (12 years ago)
Author:
vboxsync
Message:

Guest Control 2.0: Bugfixes.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

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

    r42716 r42758  
    28582858        mData.mGuestSessions[uNewSessionID] = pGuestSession;
    28592859
    2860         LogFlowFunc(("Added new session with session ID=%RU32 (now %ld sessios total)\n",
     2860        LogFlowFunc(("Added new session with session ID=%RU32 (now %ld sessions total)\n",
    28612861                     uNewSessionID, mData.mGuestSessions.size()));
    28622862    }
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r42754 r42758  
    257257                                   30 * 1000 /* Timeout */, waitRes);
    258258            if (   RT_FAILURE(rc)
    259                 || waitRes.mResult == ProcessWaitResult_Terminate
    260                 || waitRes.mResult == ProcessWaitResult_Error
    261                 || waitRes.mResult == ProcessWaitResult_Timeout)
     259                || waitRes.mResult != ProcessWaitForFlag_StdIn)
    262260            {
    263261                break;
     
    319317                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    320318                                    Utf8StrFmt(GuestSession::tr("Writing to file \"%s\" (offset %RU64) failed: %Rrc"),
    321                                                mSource.c_str(), cbWrittenTotal, rc));
     319                                               mDest.c_str(), cbWrittenTotal, rc));
    322320                break;
    323321            }
    324 #ifdef DEBUG
     322
    325323            LogFlowThisFunc(("cbWritten=%RU32, cbToRead=%RU64, cbWrittenTotal=%RU64, cbFileSize=%RU64\n",
    326324                             cbWritten, cbToRead - cbWritten, cbWrittenTotal + cbWritten, mSourceSize));
    327 #endif
     325
    328326            /* Only subtract bytes reported written by the guest. */
    329327            Assert(cbToRead >= cbWritten);
     
    488486    {
    489487        rc = setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    490                                  Utf8StrFmt(GuestSession::tr("Guest file \"%s\" is not a file"), mSource.c_str()));
     488                                 Utf8StrFmt(GuestSession::tr("Object \"%s\" on the guest is not a file"), mSource.c_str()));
    491489    }
    492490
     
    521519            {
    522520                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    523                                     Utf8StrFmt(GuestSession::tr("Unable to start guest process: %Rrc"), rc));
     521                                    Utf8StrFmt(GuestSession::tr("Unable to start guest process for copying data from guest to host: %Rrc"), rc));
    524522            }
    525523            else
     
    537535                                           30 * 1000 /* Timeout */, waitRes);
    538536                    if (   RT_FAILURE(rc)
    539                         || waitRes.mResult != ProcessWaitResult_StdOut)
     537                        && (   waitRes.mResult != ProcessWaitResult_StdOut
     538                            || waitRes.mResult != ProcessWaitResult_Any)
     539                       )
    540540                    {
    541541                        break;
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