extensions/source/activex/so_activex.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit a790b8f4d554f2e249cd63f524f88940b0166325 Author: Mohamed Zaghloul <zaghloulmoham...@gmail.com> AuthorDate: Thu Mar 20 23:30:36 2025 +0200 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Thu Mar 27 12:06:41 2025 +0100 tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() Change-Id: I77f84819915497966aa725e35a416c0e7f5c72c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183185 Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Tested-by: Jenkins diff --git a/extensions/source/activex/so_activex.cxx b/extensions/source/activex/so_activex.cxx index a4ce480613dc..dadd8ae7eebd 100644 --- a/extensions/source/activex/so_activex.cxx +++ b/extensions/source/activex/so_activex.cxx @@ -731,8 +731,8 @@ STDAPI DllRegisterServer() { wchar_t pProgramPath[1024]; wchar_t* pPathEnd = nullptr; - DWORD nLen = GetModuleFileNameW( aCurModule, pProgramPath, SAL_N_ELEMENTS(pProgramPath) ); - if ( nLen && nLen < SAL_N_ELEMENTS(pProgramPath) ) + DWORD nLen = GetModuleFileNameW( aCurModule, pProgramPath, std::size(pProgramPath) ); + if ( nLen && nLen < std::size(pProgramPath) ) pPathEnd = wcsrchr(pProgramPath, '\'); if (pPathEnd) {