Changeset 42969 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Aug 24, 2012 8:35:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r42967 r42969 2565 2565 if (strSource.isEmpty()) 2566 2566 { 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; 2586 2569 } 2587 2570 else if (!RTFileExists(strSource.c_str()))
Note:
See TracChangeset
for help on using the changeset viewer.