diff options
Diffstat (limited to 'shell/source/win32/spsupp/spsuppHelper.cxx')
-rw-r--r-- | shell/source/win32/spsupp/spsuppHelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/spsupp/spsuppHelper.cxx b/shell/source/win32/spsupp/spsuppHelper.cxx index af3509b87c8b..9ee49401a3c8 100644 --- a/shell/source/win32/spsupp/spsuppHelper.cxx +++ b/shell/source/win32/spsupp/spsuppHelper.cxx @@ -31,8 +31,8 @@ const OUString& GetSofficeExe() { static const OUString s_sPath = []() { OUString result; - wchar_t sPath[MAX_PATH]; - if (GetModuleFileNameW(nullptr, sPath, MAX_PATH) == 0) + wchar_t sPath[32767]; + if (GetModuleFileNameW(nullptr, sPath, std::size(sPath)) == 0) return result; wchar_t* pSlashPos = wcsrchr(sPath, L'\\'); if (pSlashPos == nullptr) |