- Timestamp:
- Aug 29, 2018 12:28:34 PM (6 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r73945 r73947 142 142 "dndwnd"); /** @todo Include ID if there's more than one proxy window. */ 143 143 if (RT_SUCCESS(rc)) 144 rc = RTThreadUserWait(hThread, 30 * 1000 /* Timeout in ms */); 144 { 145 int rc2 = RTThreadUserWait(hThread, 30 * 1000 /* Timeout in ms */); 146 AssertRC(rc2); 147 148 if (!pCtx->fStarted) /* Did the thread fail to start? */ 149 rc = VERR_GENERAL_FAILURE; /** @todo Find a better rc. */ 150 } 145 151 } 146 152 … … 290 296 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 291 297 rc = pThis->RegisterAsDropTarget(); 292 #else293 rc = VINF_SUCCESS;294 298 #endif 295 299 } … … 300 304 } 301 305 302 bool fSignalled = false;303 304 306 if (RT_SUCCESS(rc)) 305 { 306 rc = RTThreadUserSignal(hThread); 307 fSignalled = RT_SUCCESS(rc); 308 307 pCtx->fStarted = true; /* Set started indicator on success. */ 308 309 int rc2 = RTThreadUserSignal(hThread); 310 bool fSignalled = RT_SUCCESS(rc2); 311 312 if (RT_SUCCESS(rc)) 313 { 309 314 bool fShutdown = false; 310 315 for (;;) … … 332 337 333 338 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 334 intrc2 = pThis->UnregisterAsDropTarget();339 rc2 = pThis->UnregisterAsDropTarget(); 335 340 if (RT_SUCCESS(rc)) 336 341 rc = rc2; … … 341 346 if (!fSignalled) 342 347 { 343 intrc2 = RTThreadUserSignal(hThread);348 rc2 = RTThreadUserSignal(hThread); 344 349 AssertRC(rc2); 345 350 } -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.h
r69500 r73947 5 5 6 6 /* 7 * Copyright (C) 2013-201 7Oracle Corporation7 * Copyright (C) 2013-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 229 229 /** Pointer to the service environment. */ 230 230 const VBOXSERVICEENV *pEnv; 231 /** Started indicator. */ 232 bool fStarted; 231 233 /** Shutdown indicator. */ 232 234 bool fShutdown;
Note:
See TracChangeset
for help on using the changeset viewer.