Changeset 78767 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- May 26, 2019 9:13:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r78752 r78767 8852 8852 * deadlock). 8853 8853 */ 8854 VMPowerDownTask * task = NULL;8854 VMPowerDownTask *pTask = NULL; 8855 8855 try 8856 8856 { 8857 task = new VMPowerDownTask(that, pProgress);8857 pTask = new VMPowerDownTask(that, pProgress); 8858 8858 } 8859 8859 catch (std::bad_alloc &) … … 8871 8871 * nothing. 8872 8872 */ 8873 if ( !task->isOk())8873 if (pTask->isOk()) 8874 8874 { 8875 rc = task->createThread();8876 task = NULL;8875 rc = pTask->createThread(); 8876 pTask = NULL; 8877 8877 if (FAILED(rc)) 8878 8878 LogRelFunc(("Problem with creating thread for VMPowerDownTask.\n")); … … 8880 8880 else 8881 8881 { 8882 LogFlowFunc(("Console is already being uninitialized. (%Rhrc)\n", task->rc())); 8883 delete task; 8882 LogFlowFunc(("Console is already being uninitialized. (%Rhrc)\n", pTask->rc())); 8883 delete pTask; 8884 pTask = NULL; 8884 8885 rc = E_FAIL; 8885 8886 }
Note:
See TracChangeset
for help on using the changeset viewer.