VirtualBox

Ignore:
Timestamp:
Apr 24, 2019 2:10:29 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rest: RTCRestBinaryResponse::receiveHttpCallback if we are
collecting data in m_pbData we also need to update m_cbData. I'm not
sure if we want to maintain m_cbDownloaded here at all as it is not
even accessible anyway (except to subclasses), but for now just do a
minimal fix to make the result usable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/rest-binary.cpp

    r76553 r78272  
    682682    pThis->m_cbDownloaded = offContent + cbBuf;
    683683
     684    /* we cap it at m_cbMaxDownload which is size_t so this cast is safe */
     685    pThis->m_cbData = (size_t)pThis->m_cbDownloaded;
     686
    684687    RT_NOREF(hHttp);
    685688    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette