[RAPPS] Addendum to 0.4.15-dev-3724-g3a7c0d8 CORE-18018

For a moment I thought this member was obsolete entirely,
and intended to delete it entirely.
(as its size is just ULONG which is too small for big downloads > 4GB size).
It apparently works also without it to display the size,
as we actually use a different member that stores the size as a string.

But there actually still *is* a usage for that ULONG representation.
In (the rare) corner-case the http download does not allow to query the size,
then the ULONG representation m_SizeBytes is used as a fallback for the
download-progress-bar to avoid 'marquee mode'.

The 'fallback of the fallback' so to say.
We should enlarge this to be a 64bit unsigned value some day.
This commit is contained in:
Joachim Henze 2022-01-23 21:21:50 +01:00
parent 3a7c0d82d2
commit adfef37b2b

View file

@ -217,6 +217,7 @@ VOID CAvailableApplicationInfo::RetrieveSize()
if (!m_Parser->GetInt(L"SizeBytes", iSizeBytes))
return;
m_SizeBytes = iSizeBytes;
StrFormatByteSizeW(iSizeBytes, m_szSize.GetBuffer(MAX_PATH), MAX_PATH);
m_szSize.ReleaseBuffer();
}