diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-22 22:17:32 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-23 01:35:43 +0100 |
commit | 3b73071f7a7fcf80547da81e5effe4ed6018bbb4 (patch) | |
tree | e7174801cad0eb8c1b9f821abbab1d935cf20dd4 /comphelper | |
parent | f093cad87e830fecae4322b06e75d5da2ff27bb3 (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/windows/windows_process.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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, |