VirtualBox

Ignore:
Timestamp:
Aug 24, 2012 8:35:47 AM (12 years ago)
Author:
vboxsync
Message:

VBoxManage/GuestCtrl: Further checks not needed anymore.

File:
1 edited

Legend:

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

    r42967 r42969  
    25652565    if (strSource.isEmpty())
    25662566    {
    2567         char strTemp[RTPATH_MAX];
    2568         vrc = RTPathAppPrivateNoArch(strTemp, sizeof(strTemp));
    2569         AssertRC(vrc);
    2570         Utf8Str strSrc1 = Utf8Str(strTemp).append("/VBoxGuestAdditions.iso");
    2571 
    2572         vrc = RTPathExecDir(strTemp, sizeof(strTemp));
    2573         AssertRC(vrc);
    2574         Utf8Str strSrc2 = Utf8Str(strTemp).append("/additions/VBoxGuestAdditions.iso");
    2575 
    2576         /* Check the standard image locations */
    2577         if (RTFileExists(strSrc1.c_str()))
    2578             strSource = strSrc1;
    2579         else if (RTFileExists(strSrc2.c_str()))
    2580             strSource = strSrc2;
    2581         else
    2582         {
    2583             RTMsgError("Source could not be determined! Please use --source to specify a valid source\n");
    2584             vrc = VERR_FILE_NOT_FOUND;
    2585         }
     2567        RTMsgError("No Guest Additions source found or specified, aborting\n");
     2568        vrc = VERR_FILE_NOT_FOUND;
    25862569    }
    25872570    else if (!RTFileExists(strSource.c_str()))
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