Changeset 36326 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 21, 2011 2:48:23 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70655
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r36309 r36326 327 327 /* Did we reach the end of the content we want to transfer (last chunk)? */ 328 328 if ( (cbRead < _64K) 329 /* Did we reach the last block which is exactly _64K? */ 330 || (cbToRead - cbRead == 0) 329 331 /* ... or does the user want to cancel? */ 330 332 || ( SUCCEEDED(aTask->progress->COMGETTER(Canceled(&fCanceled))) … … 636 638 637 639 /* Wait for process to exit ... */ 638 SafeArray<BYTE> aInputData(_ 1M);640 SafeArray<BYTE> aInputData(_64K); 639 641 while ( SUCCEEDED(progressCat->COMGETTER(Completed(&fCompleted))) 640 642 && !fCompleted) … … 643 645 /* cbLength contains remaining bytes of our installer file 644 646 * opened above to read. */ 645 size_t cbToRead = RT_MIN(cbLength, _ 1M);647 size_t cbToRead = RT_MIN(cbLength, _64K); 646 648 if (cbToRead) 647 649 { … … 656 658 /* Did we reach the end of the content we want to transfer (last chunk)? */ 657 659 ULONG uFlags = ProcessInputFlag_None; 658 if ( (cbRead < _1M) 660 if ( (cbRead < _64K) 661 /* Did we reach the last block which is exactly _64K? */ 662 || (cbToRead - cbRead == 0) 659 663 /* ... or does the user want to cancel? */ 660 664 || ( SUCCEEDED(aTask->progress->COMGETTER(Canceled(&fCanceled))) … … 1958 1962 1959 1963 if (!fCanceled) 1960 { 1964 { 1961 1965 BOOL fCompleted; 1962 1966 if ( SUCCEEDED(it->second.pProgress->COMGETTER(Completed)(&fCompleted)) 1963 1967 && fCompleted) 1964 1968 { 1965 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1969 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1966 1970 1967 1971 PCALLBACKDATAEXECINSTATUS pStatusData = (PCALLBACKDATAEXECINSTATUS)it->second.pvData; … … 1979 1983 tr("Client error %u while processing input data"), pStatusData->u32Status); 1980 1984 break; 1981 } 1985 } 1982 1986 } 1983 1987 else
Note:
See TracChangeset
for help on using the changeset viewer.