Changeset 34619 in vbox
- Timestamp:
- Dec 2, 2010 3:51:06 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68419
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r34554 r34619 2400 2400 */ 2401 2401 char szOutput[RTPATH_MAX]; 2402 if (RTStrPrintf(szOutput, sizeof(szOutput), "--output=%s", Utf8Dest.c_str()) >= sizeof(szOutput) - 1)2402 if (RTStrPrintf(szOutput, sizeof(szOutput), "--output=%s", Utf8Dest.c_str()) <= sizeof(szOutput) - 1) 2403 2403 { 2404 2404 /* … … 2633 2633 { 2634 2634 rc = GetProcessStatus(uPID, &uRetExitCode, &uRetFlags, &uRetStatus); 2635 if ( uRetExitCode == 0)2635 if (SUCCEEDED(rc) && uRetExitCode != 0) 2636 2636 { 2637 progressCreate->notifyComplete(S_OK); 2637 rc = setError(VBOX_E_IPRT_ERROR, 2638 tr("Error while creating directory")); 2638 2639 } 2639 else2640 progressCreate->notifyComplete(VBOX_E_IPRT_ERROR,2641 COM_IIDOF(IGuest),2642 Guest::getStaticComponentName(),2643 Guest::tr("Error while creating directory"));2644 2640 } 2645 2641 } 2642 else if (fCanceled) 2643 rc = setError(VBOX_E_IPRT_ERROR, 2644 tr("Directory creation was aborted")); 2645 else 2646 AssertReleaseMsgFailed(("Directory creation neither completed nor canceled!?")); 2647 2648 if (SUCCEEDED(rc)) 2649 progressCreate->notifyComplete(S_OK); 2646 2650 else 2647 2651 progressCreate->notifyComplete(VBOX_E_IPRT_ERROR,
Note:
See TracChangeset
for help on using the changeset viewer.