summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-02-25 19:14:00 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-26 03:19:21 +0100
commit3fef8ba99222f5c82d56b4acfb3a07afbaa8364b (patch)
tree3ed7455bc9bbfc8c2a3997481b35df635d848c46 /shell/source
parentcb12053fc519ddeac07cabd76d178a2729ec14d1 (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: I78524891d89e34fb1569bf1d32161a96079f0f6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163909 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/simplemail/smplmailclient.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx
index d40577892cb3..333277353d03 100644
--- a/shell/source/win32/simplemail/smplmailclient.cxx
+++ b/shell/source/win32/simplemail/smplmailclient.cxx
@@ -67,7 +67,7 @@ namespace /* private */
LONG lret = RegOpenKeyW(HKEY_CURRENT_USER, L"Software\\LibreOffice\\SendAsEMailClient", &hkey);
if (lret == ERROR_SUCCESS)
{
- wchar_t buff[MAX_PATH];
+ wchar_t buff[32767];
LONG sz = sizeof(buff);
lret = RegQueryValueW(hkey, nullptr, buff, &sz);
if (lret == ERROR_SUCCESS)