From 3b5d917699912194ee71dc96f2c6a4836cf0c288 Mon Sep 17 00:00:00 2001 From: "Rexx J. Larsson" Date: Sun, 12 Feb 2023 16:15:51 +0100 Subject: [PATCH] [RAPPS] Fix Installed Apps information display (#4973) This fixes hyperlinks highlighting the text before it. CORE-18397 --- base/applications/rapps/installed.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/applications/rapps/installed.cpp b/base/applications/rapps/installed.cpp index 7162f471b50..054bcf1736d 100644 --- a/base/applications/rapps/installed.cpp +++ b/base/applications/rapps/installed.cpp @@ -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;