shell/source/win32/jumplist/JumpList.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7dd7cdc7afc57fbcf6f0a23ea2b7a45d7d114a09 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Feb 25 19:12:39 2024 +0600 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Feb 26 03:18:45 2024 +0100 Replace an instance of MAX_PATH with 32767 ... which is the approximate maximum of Windows API, as documented in https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation Change-Id: I7029d18eaa721a0db1b1869cfe6425715e80eda1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163907 Tested-by: Mike Kaganski <mike.kagan...@collabora.com> Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/shell/source/win32/jumplist/JumpList.cxx b/shell/source/win32/jumplist/JumpList.cxx index 2773294be717..182af345c18e 100644 --- a/shell/source/win32/jumplist/JumpList.cxx +++ b/shell/source/win32/jumplist/JumpList.cxx @@ -477,13 +477,13 @@ Sequence<JumpListItem> SAL_CALL JumpListImpl::getRemovedItems(const OUString& sA item.arguments = o3tl::toU(PropVariantToStringWithDefault(propvar, L"")); PropVariantClear(&propvar); - wchar_t itemDesc[MAX_PATH]; + wchar_t itemDesc[32767]; ThrowIfFailed(pShellLinkItem->GetDescription( itemDesc, std::extent<decltype(itemDesc)>::value), "GetDescription failed."); item.description = o3tl::toU(itemDesc); - wchar_t path[MAX_PATH]; + wchar_t path[32767]; int icon_index; ThrowIfFailed(pShellLinkItem->GetIconLocation( path, std::extent<decltype(path)>::value, &icon_index),