|
@@ -1749,7 +1749,7 @@ static bool __fastcall AddJumpListCategory(TStrings * Names,
|
|
|
Names->Strings[Index], L"", AdditionalParams, -1, IconIndex, true);
|
|
Names->Strings[Index], L"", AdditionalParams, -1, IconIndex, true);
|
|
|
|
|
|
|
|
wchar_t Desc[2048];
|
|
wchar_t Desc[2048];
|
|
|
- if (SUCCEEDED(Link->GetDescription(Desc, sizeof(Desc) - 1)))
|
|
|
|
|
|
|
+ if (SUCCEEDED(Link->GetDescription(Desc, LENOF(Desc) - 1)))
|
|
|
{
|
|
{
|
|
|
if (Removed->IndexOf(Desc) < 0)
|
|
if (Removed->IndexOf(Desc) < 0)
|
|
|
{
|
|
{
|
|
@@ -1828,7 +1828,7 @@ void __fastcall UpdateJumpList(TStrings * SessionNames, TStrings * WorkspaceName
|
|
|
IShellLink * Link;
|
|
IShellLink * Link;
|
|
|
wchar_t Desc[2048];
|
|
wchar_t Desc[2048];
|
|
|
if (SUCCEEDED(RemovedArray->GetAt(Index, IID_IShellLink, (void**)&Link)) &&
|
|
if (SUCCEEDED(RemovedArray->GetAt(Index, IID_IShellLink, (void**)&Link)) &&
|
|
|
- SUCCEEDED(Link->GetDescription(Desc, sizeof(Desc) - 1)))
|
|
|
|
|
|
|
+ SUCCEEDED(Link->GetDescription(Desc, LENOF(Desc) - 1)))
|
|
|
{
|
|
{
|
|
|
Removed->Add(Desc);
|
|
Removed->Add(Desc);
|
|
|
}
|
|
}
|