diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/windows/windows_process.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx index 8e7fd19f0b30..fc91145bbbf2 100644 --- a/comphelper/source/windows/windows_process.cxx +++ b/comphelper/source/windows/windows_process.cxx @@ -179,12 +179,8 @@ WinLaunchChild(const wchar_t *exePath, return FALSE; } - STARTUPINFOW si; - std::memset(&si, 0, sizeof si); - si.cb = sizeof(STARTUPINFOW); - si.lpDesktop = const_cast<LPWSTR>(L"winsta0\\Default"); - PROCESS_INFORMATION pi; - std::memset(&pi, 0, sizeof pi); + STARTUPINFOW si{ .cb = sizeof(si), .lpDesktop = const_cast<LPWSTR>(L"winsta0\\Default") }; + PROCESS_INFORMATION pi{}; if (userToken == nullptr) { |