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>
This commit is contained in:
parent
cb12053fc5
commit
3fef8ba992
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue