Changeset 26323 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Feb 8, 2010 11:13:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r26313 r26323 49 49 50 50 #include "Global.h" 51 #include "VirtualBoxErrorInfoImpl.h" 51 52 #include "GuestImpl.h" 52 53 #include "KeyboardImpl.h" … … 7406 7407 /* Notify the progress object of the success */ 7407 7408 task->mProgress->notifyComplete(S_OK); 7409 console->mControl->SetPowerUpInfo(NULL); 7408 7410 } 7409 7411 else … … 7411 7413 /* The progress object will fetch the current error info */ 7412 7414 task->mProgress->notifyComplete(rc); 7415 ProgressErrorInfo info(task->mProgress); 7416 ComObjPtr<VirtualBoxErrorInfo> errorInfo; 7417 rc = errorInfo.createObject(); 7418 if (SUCCEEDED(rc)) 7419 { 7420 errorInfo->init(info.getResultCode(), 7421 info.getInterfaceID(), 7422 info.getComponent(), 7423 info.getText()); 7424 console->mControl->SetPowerUpInfo(errorInfo); 7425 } 7426 else 7427 { 7428 /* If it's not possible to create an IVirtualBoxErrorInfo object 7429 * signal success, as not signalling anything will cause a stuck 7430 * progress object in VBoxSVC. */ 7431 console->mControl->SetPowerUpInfo(NULL); 7432 } 7413 7433 7414 7434 LogRel(("Power up failed (vrc=%Rrc, rc=%Rhrc (%#08X))\n", vrc, rc, rc));
Note:
See TracChangeset
for help on using the changeset viewer.