https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3b5d917699912194ee71d…
commit 3b5d917699912194ee71dc96f2c6a4836cf0c288
Author: Rexx J. Larsson <hello(a)rexx.icu>
AuthorDate: Sun Feb 12 16:15:51 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Feb 12 16:15:51 2023 +0100
[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;