Browse Source

Fixed a bug in TracktionMarketplaceStatus::readReplyFromWebserver() that would cause it to fail if all the data was not read at once

tags/2021-05-28
ed 8 years ago
parent
commit
1bcc427484
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_product_unlocking/marketplace/juce_TracktionMarketplaceStatus.cpp

+ 1
- 1
modules/juce_product_unlocking/marketplace/juce_TracktionMarketplaceStatus.cpp View File

@@ -78,7 +78,7 @@ String TracktionMarketplaceStatus::readReplyFromWebserver (const String& email,
auto max = jmin ((int) bufferSize, contentLength < 0 ? std::numeric_limits<int>::max()
: static_cast<int> (contentLength - downloaded));
auto actualBytesRead = stream->read (buffer.get(), max);
auto actualBytesRead = stream->read (buffer.get() + downloaded, max - downloaded);
if (actualBytesRead < 0 || thread->threadShouldExit() || stream->isError())
break;


Loading…
Cancel
Save