~ubuntu-branches/ubuntu/quantal/virtualbox/quantal

« back to all changes in this revision

Viewing changes to src/VBox/Main/src-client/GuestCtrlImplDir.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-05-29 10:09:31 UTC
  • mfrom: (3.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20120529100931-2xayrbh5hyzm6e9p
Tags: 4.1.16-dfsg-1
* New upstream release.
* Drop 37-fix-build-gcc47.patch, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
        if (SUCCEEDED(hr))
134
134
        {
135
135
            hr = setErrorFromProgress(pProgress);
 
136
            if (SUCCEEDED(hr))
 
137
            {
 
138
                VBOXGUESTCTRL_PROCESS proc;
 
139
                int rc = processGetStatus(uPID, &proc,
 
140
                                          true /* Remove when terminated */);
 
141
                if (RT_SUCCESS(rc))
 
142
                {
 
143
                    if (   proc.mStatus   != ExecuteProcessStatus_TerminatedNormally
 
144
                        || proc.mExitCode != 0)
 
145
                    {
 
146
                        hr = setErrorNoLog(VBOX_E_IPRT_ERROR,
 
147
                                           tr("Could not create directory \"%s\""), Utf8Str(aDirectory).c_str());
 
148
                    }
 
149
                }
 
150
                else
 
151
                    hr = setErrorNoLog(VBOX_E_IPRT_ERROR,
 
152
                                       tr("Unable to retrieve status for creating directory \"%s\""),
 
153
                                       Utf8Str(aDirectory).c_str());
 
154
            }
136
155
            pProgress.setNull();
137
156
        }
138
157
    }