Changeset 63159 in vbox for trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
- Timestamp:
- Aug 8, 2016 12:43:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r62485 r63159 627 627 SendDataTask *pTask = NULL; 628 628 PSENDDATACTX pSendCtx = NULL; 629 RTTHREAD threadSnd;629 RTTHREAD rcThreadSend; 630 630 int rc = S_OK; 631 631 … … 653 653 //this function delete pTask in case of exceptions, so there is no need in the call of delete operator 654 654 //pSendCtx is deleted in the pTask destructor 655 hr = pTask->createThread(& threadSnd);656 657 } 658 catch (std::bad_alloc &)655 hr = pTask->createThread(&rcThreadSend); 656 657 } 658 catch (std::bad_alloc &) 659 659 { 660 660 hr = setError(E_OUTOFMEMORY); 661 } 662 catch(...) 661 rcThreadSend = NIL_RTTHREAD; 662 } 663 catch (...) 663 664 { 664 665 LogRel2(("DnD: Could not create thread for SendDataTask \n")); 665 666 hr = E_FAIL; 667 rcThreadSend = NIL_RTTHREAD; 666 668 } 667 669 668 670 if (SUCCEEDED(hr)) 669 671 { 670 rc = RTThreadUserWait( threadSnd, 30 * 1000 /* 30s timeout */);672 rc = RTThreadUserWait(rcThreadSend, 30 * 1000 /* 30s timeout */); 671 673 if (RT_SUCCESS(rc)) 672 674 {
Note:
See TracChangeset
for help on using the changeset viewer.