shell/source/win32/simplemail/smplmailclient.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3fef8ba99222f5c82d56b4acfb3a07afbaa8364b
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Feb 25 19:14:00 2024 +0600
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Feb 26 03:19:21 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: I78524891d89e34fb1569bf1d32161a96079f0f6e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163909
    Tested-by: Mike Kaganski <mike.kagan...@collabora.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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)

Reply via email to