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>
This commit is contained in:
Mike Kaganski 2024-02-22 22:17:32 +06:00
parent f093cad87e
commit 3b73071f7a

View file

@ -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,