shell/source/win32/shlxthandler/shlxthdl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit cb12053fc519ddeac07cabd76d178a2729ec14d1 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Feb 25 19:13:10 2024 +0600 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Feb 26 03:19:03 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: I5cd3c5e384005341aa2c39b18b3302521e71a805 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163908 Tested-by: Mike Kaganski <mike.kagan...@collabora.com> Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/shell/source/win32/shlxthandler/shlxthdl.cxx b/shell/source/win32/shlxthandler/shlxthdl.cxx index 9a5b8a37917c..13f687ad5a6b 100644 --- a/shell/source/win32/shlxthandler/shlxthdl.cxx +++ b/shell/source/win32/shlxthandler/shlxthdl.cxx @@ -300,12 +300,12 @@ namespace /* private */ STDAPI DllRegisterServer() { - WCHAR ModuleFileName[MAX_PATH]; + WCHAR ModuleFileName[32767]; GetModuleFileNameW( GetCurrentModuleHandle(), ModuleFileName, - sizeof(ModuleFileName)/sizeof(ModuleFileName[0])); + std::size(ModuleFileName)); HRESULT hr = S_OK;