meow-7.2.2
Mark Palange (Mani) 2010-11-16 16:21:51 -08:00
commit 23610ad7df
2 changed files with 8 additions and 2 deletions

View File

@ -275,9 +275,14 @@ size_t LLUpdateDownloader::Implementation::onHeader(void * buffer, size_t size)
size_t LLUpdateDownloader::Implementation::onBody(void * buffer, size_t size)
{
if(mCancelled) return 0; // Forces a write error which will halt curl thread.
if((size == 0) || (buffer == 0)) return 0;
mDownloadStream.write(reinterpret_cast<const char *>(buffer), size);
return size;
if(mDownloadStream.bad()) {
return 0;
} else {
return size;
}
}

View File

@ -1,2 +1,3 @@
start /WAIT %1 /SKIP_DIALOGS
IF ERRORLEVEL 1 ECHO ERRORLEVEL > %2
IF ERRORLEVEL 1 ECHO %ERRORLEVEL% > %2
DEL %1