summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-18 10:03:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-18 10:03:16 +0200
commitdd066778de7d367b8990874d5472374fa5577b90 (patch)
treeefe6cd42982faa177189724e3dec0b9c58b074cf /comphelper
parent210f57d026e5e534e64e7bd84f5750b7248f79d2 (diff)
-Werror,-Wmissing-field-initializers (clang-cl)
Change-Id: I77b6fb2b9fe8e93f279f29a19f67079f5f81d1b7
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/windows/windows_process.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx
index bd77f70eabdc..1a404785536a 100644
--- a/comphelper/source/windows/windows_process.cxx
+++ b/comphelper/source/windows/windows_process.cxx
@@ -6,6 +6,7 @@
#include <shellapi.h>
#include <cstddef>
+#include <cstring>
#include <cwchar>
// Needed for CreateEnvironmentBlock
@@ -189,10 +190,12 @@ WinLaunchChild(const wchar_t *exePath,
return FALSE;
}
- STARTUPINFOW si = {0};
+ STARTUPINFOW si;
+ std::memset(&si, 0, sizeof si);
si.cb = sizeof(STARTUPINFOW);
si.lpDesktop = const_cast<LPWSTR>(L"winsta0\\Default");
- PROCESS_INFORMATION pi = {0};
+ PROCESS_INFORMATION pi;
+ std::memset(&pi, 0, sizeof pi);
if (userToken == nullptr)
{