mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[RAPPS] Fix Installed Apps information display (#4973)
This fixes hyperlinks highlighting the text before it. CORE-18397
This commit is contained in:
parent
5ad5737370
commit
3b5d917699
|
@ -148,7 +148,7 @@ BOOL CInstalledApplicationInfo::GetApplicationRegString(LPCWSTR lpKeyName, ATL::
|
||||||
|
|
||||||
dwSize = min(dwAllocated, dwSize);
|
dwSize = min(dwAllocated, dwSize);
|
||||||
// CString takes care of zero-terminating it
|
// CString takes care of zero-terminating it
|
||||||
String.ReleaseBuffer(dwSize / sizeof(WCHAR));
|
String.ReleaseBuffer();
|
||||||
|
|
||||||
if (Result != ERROR_SUCCESS)
|
if (Result != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
@ -164,7 +164,7 @@ BOOL CInstalledApplicationInfo::GetApplicationRegString(LPCWSTR lpKeyName, ATL::
|
||||||
if (dwLen > 0)
|
if (dwLen > 0)
|
||||||
{
|
{
|
||||||
BOOL bSuccess = ExpandEnvironmentStringsW(String, Tmp.GetBuffer(dwLen), dwLen) == dwLen;
|
BOOL bSuccess = ExpandEnvironmentStringsW(String, Tmp.GetBuffer(dwLen), dwLen) == dwLen;
|
||||||
Tmp.ReleaseBuffer(dwLen - 1);
|
Tmp.ReleaseBuffer();
|
||||||
if (bSuccess)
|
if (bSuccess)
|
||||||
{
|
{
|
||||||
String = Tmp;
|
String = Tmp;
|
||||||
|
|
Loading…
Reference in a new issue