From 7dd7cdc7afc57fbcf6f0a23ea2b7a45d7d114a09 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 25 Feb 2024 19:12:39 +0600 Subject: 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 Reviewed-by: Mike Kaganski --- shell/source/win32/jumplist/JumpList.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/source') 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 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::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::value, &icon_index), -- cgit