Changeset 31260 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Jul 31, 2010 2:29:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r31070 r31260 1076 1076 1077 1077 /* wait for result because there can be errors */ 1078 /** @todo The error handling here is kind of peculiar, anyone care 1079 * to comment why this works just fine? */ 1080 for (;;) 1081 { 1082 rc = progress->WaitForCompletion(500); 1083 if (FAILED(rc)) 1084 break; 1085 1086 /* Processing events is vital for teleportation targets. */ 1087 gEventQ->processEventQueue(0); 1088 1089 BOOL fCompleted; 1090 rc = progress->COMGETTER(Completed)(&fCompleted); 1091 if (FAILED(rc) || fCompleted) 1092 break; 1093 } 1094 1078 1095 if (SUCCEEDED(progress->WaitForCompletion(-1))) 1079 1096 {
Note:
See TracChangeset
for help on using the changeset viewer.