VirtualBox

Changeset 43002 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 27, 2012 3:47:19 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80335
Message:

Build fix.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r42948 r43002  
    177177        {
    178178            mProcInfo.mCommand = strDest;
    179             mProcInfo.mName = strDest;
     179            if (mProcInfo.mName.isEmpty())
     180                mProcInfo.mName = strDest;
    180181        }
    181182
     
    194195                        Utf8Str const &strFileSource, const Utf8Str &strFileDest,
    195196                        bool fOptional, uint32_t *pcbSize);
    196     int runFile(GuestSession *pSession, GuestProcessStartupInfo &procInfo);
     197    int runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo);
    197198
    198199    /** Files to handle. */
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r43001 r43002  
    923923                                 Utf8StrFmt(GuestSession::tr("Guest Additions were not ready within time, giving up")));
    924924
    925     eOSType eOSType;
     925    eOSType osType;
    926926    if (RT_SUCCESS(rc))
    927927    {
     
    951951                || strOSType.contains("Windows", Utf8Str::CaseInsensitive))
    952952            {
    953                 eOSType = eOSType_Windows;
     953                osType = eOSType_Windows;
    954954            }
    955955            else if (strOSType.contains("Solaris", Utf8Str::CaseInsensitive))
    956956            {
    957                 eOSType = eOSType_Solaris;
     957                osType = eOSType_Solaris;
    958958            }
    959959            else /* Everything else hopefully means Linux :-). */
    960                 eOSType = eOSType_Linux;
     960                osType = eOSType_Linux;
    961961
    962962#if 1 /* Only Windows is supported (and tested) at the moment. */
    963             if (eOSType != eOSType_Windows)
     963            if (osType != eOSType_Windows)
    964964            {
    965965                hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
     
    989989            /* Set default installation directories. */
    990990            Utf8Str strUpdateDir = "/tmp/";
    991             if (eOSType == eOSType_Windows)
     991            if (osType == eOSType_Windows)
    992992                 strUpdateDir = "C:\\Temp\\";
    993993
     
    10201020                    if (RT_SUCCESS(rc))
    10211021                    {
    1022                         if (eOSType == eOSType_Windows)
     1022                        if (osType == eOSType_Windows)
    10231023                        {
    10241024                            strUpdateDir.findReplace('/', '\\');
     
    10491049                /* Prepare the file(s) we want to copy over to the guest and
    10501050                 * (maybe) want to run. */
    1051                 switch (eOSType)
     1051                switch (osType)
    10521052                {
    10531053                    case eOSType_Windows:
     
    11421142                        break;
    11431143                    default:
    1144                         AssertReleaseMsgFailed(("Unsupported guest type: %d\n", eOSType));
     1144                        AssertReleaseMsgFailed(("Unsupported guest type: %d\n", osType));
    11451145                        break;
    11461146                }
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