Skip to content
Snippets Groups Projects
Commit 23610ad7 authored by Mark Palange (Mani)'s avatar Mark Palange (Mani)
Browse files

merge

parents 13b77e36 ad354324
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
start /WAIT %1 /SKIP_DIALOGS
IF ERRORLEVEL 1 ECHO ERRORLEVEL > %2
IF ERRORLEVEL 1 ECHO %ERRORLEVEL% > %2
DEL %1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment