summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-02-26 09:15:44 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-26 05:59:10 +0100
commit8f6b4125819644ba91b1386170df1baa9a9c197d (patch)
tree7e7ec4d2b537863f5459d0c41168a45a96770506 /sal/osl
parent74185b8edf7f046a3372319da86a1d8ca0024c87 (diff)
Define a name for the extended path buffer size, instead of a literal
Change-Id: If6d40c818e021b3241d6b6b33aceca07c6393511 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163926 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/all/log.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index d014b2950d3e..a8b86e3e7e79 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -32,6 +32,7 @@
#elif defined _WIN32
#include <process.h>
#include <windows.h>
+#include <systools/win32/extended_max_path.hxx>
#define OSL_DETAIL_GETPID _getpid()
#else
#include <unistd.h>
@@ -91,7 +92,7 @@ char const * toString(sal_detail_LogLevel level) {
char const* setEnvFromLoggingIniFile(const char* env, const char* key)
{
char const* sResult = nullptr;
- wchar_t buffer[32767];
+ wchar_t buffer[EXTENDED_MAX_PATH];
DWORD nLen = GetModuleFileNameW(nullptr, buffer, std::size(buffer));
if (nLen == 0 || nLen >= std::size(buffer))
return sResult;