VirtualBox

Changeset 34619 in vbox


Ignore:
Timestamp:
Dec 2, 2010 3:51:06 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68419
Message:

Fixed the previous fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r34554 r34619  
    24002400                     */
    24012401                    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)
    24032403                    {
    24042404                        /*
     
    26332633                {
    26342634                    rc = GetProcessStatus(uPID, &uRetExitCode, &uRetFlags, &uRetStatus);
    2635                     if (uRetExitCode == 0)
     2635                    if (SUCCEEDED(rc) && uRetExitCode != 0)
    26362636                    {
    2637                         progressCreate->notifyComplete(S_OK);
     2637                        rc = setError(VBOX_E_IPRT_ERROR,
     2638                                      tr("Error while creating directory"));
    26382639                    }
    2639                     else
    2640                         progressCreate->notifyComplete(VBOX_E_IPRT_ERROR,
    2641                                                        COM_IIDOF(IGuest),
    2642                                                        Guest::getStaticComponentName(),
    2643                                                        Guest::tr("Error while creating directory"));
    26442640                }
    26452641            }
     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);
    26462650            else
    26472651                progressCreate->notifyComplete(VBOX_E_IPRT_ERROR,
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