comphelper/source/windows/windows_process.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3b73071f7a7fcf80547da81e5effe4ed6018bbb4 Author: Mike Kaganski <[email protected]> AuthorDate: Thu Feb 22 22:17:32 2024 +0600 Commit: Mike Kaganski <[email protected]> CommitDate: Fri Feb 23 01:35:43 2024 +0100 Fix warning C4477 when building with MSVC without -Wv:18 Discovered by https://gerrit.libreoffice.org/c/core/+/163717 Like these: C:/lo/core/comphelper/source/windows/windows_process.cxx(254): warning C4477: 'wprintf' : format string '%s' requires an argument of type 'wchar_t *', but variadic argument 1 has type 'const void *' Change-Id: Ia804bad18366d4f9422d72f3061c83cb07e92073 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163783 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx index 7588bae027e5..8e7fd19f0b30 100644 --- a/comphelper/source/windows/windows_process.cxx +++ b/comphelper/source/windows/windows_process.cxx @@ -241,7 +241,7 @@ WinLaunchChild(const wchar_t *exePath, } else { - LPVOID lpMsgBuf = nullptr; + LPWSTR lpMsgBuf = nullptr; FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
