summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-02-25 19:12:39 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-26 03:18:45 +0100
commit7dd7cdc7afc57fbcf6f0a23ea2b7a45d7d114a09 (patch)
tree6ca677ae06a5da2d9567185467c7d24be5f6afcb /shell/source
parent66590cba87d7a2b14207ed2cec2531f1d1addf40 (diff)
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.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/win32/jumplist/JumpList.cxx4
1 files changed, 2 insertions, 2 deletions
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),