Changeset 43639 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 15, 2012 12:13:31 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 81387
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r43638 r43639 734 734 } 735 735 736 /** @todo This eventually needs a bit of revamping so that a valid session gets passed 737 * into this function already so that we don't need to mess around with closing 738 * the session all over the places below again. Later. */ 739 736 740 ComPtr<IGuestSession> pGuestSession; 737 741 rc = pGuest->CreateSession(Bstr(strUsername).raw(), … … 762 766 { 763 767 ctrlPrintError(pGuestSession, COM_IIDOF(IGuestSession)); 768 769 pGuestSession->Close(); 764 770 return RTEXITCODE_FAILURE; 765 771 } … … 805 811 { 806 812 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 813 814 pGuestSession->Close(); 807 815 return RTEXITCODE_FAILURE; 808 816 } … … 819 827 { 820 828 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 829 830 pGuestSession->Close(); 821 831 return RTEXITCODE_FAILURE; 822 832 } … … 875 885 { 876 886 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 887 888 pGuestSession->Close(); 877 889 return RTEXITCODE_FAILURE; 878 890 } … … 882 894 { 883 895 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 896 897 pGuestSession->Close(); 884 898 return RTEXITCODE_FAILURE; 885 899 } 886 900 if (fVerbose) 887 901 RTPrintf("Exit code=%u (Status=%u [%s])\n", exitCode, status, ctrlExecProcessStatusToText(status)); 902 903 pGuestSession->Close(); 888 904 return ctrlExecProcessStatusToExitCode(status, exitCode); 889 905 } … … 892 908 if (fVerbose) 893 909 RTPrintf("Process execution aborted!\n"); 910 911 pGuestSession->Close(); 894 912 return EXITCODEEXEC_TERM_ABEND; 895 913 } … … 2685 2703 || !strcmp(pArg->argv[1], "updateadds")) 2686 2704 rcExit = handleCtrlUpdateAdditions(guest, &arg); 2705 /** @todo Implement a "sessions list" command to list all opened 2706 * guest sessions along with their (friendly) names. */ 2687 2707 else 2688 2708 rcExit = errorSyntax(USAGE_GUESTCONTROL, "Unknown sub command '%s' specified!", pArg->argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.