[RAPPS] Fix Installed Apps information display (#4973)

This fixes hyperlinks highlighting the text before it.

CORE-18397
This commit is contained in:
Rexx J. Larsson 2023-02-12 16:15:51 +01:00 committed by GitHub
parent 5ad5737370
commit 3b5d917699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ BOOL CInstalledApplicationInfo::GetApplicationRegString(LPCWSTR lpKeyName, ATL::
dwSize = min(dwAllocated, dwSize);
// CString takes care of zero-terminating it
String.ReleaseBuffer(dwSize / sizeof(WCHAR));
String.ReleaseBuffer();
if (Result != ERROR_SUCCESS)
{
@ -164,7 +164,7 @@ BOOL CInstalledApplicationInfo::GetApplicationRegString(LPCWSTR lpKeyName, ATL::
if (dwLen > 0)
{
BOOL bSuccess = ExpandEnvironmentStringsW(String, Tmp.GetBuffer(dwLen), dwLen) == dwLen;
Tmp.ReleaseBuffer(dwLen - 1);
Tmp.ReleaseBuffer();
if (bSuccess)
{
String = Tmp;