summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/scanwin.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index 48b2c78bd90e..c8a66b73ade8 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -19,8 +19,6 @@
#include <sal/config.h>
-#include <cstring>
-
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/Desktop.hpp>
@@ -265,9 +263,8 @@ void Twain::ShimListenerThread::execute()
// We need a WinAPI HANDLE of the process to be able to wait on it and detect the process
// termination; so use WinAPI to start the process, not osl_executeProcess.
- STARTUPINFOW si;
- std::memset(&si, 0, sizeof si);
- si.cb = sizeof(STARTUPINFOW);
+ STARTUPINFOW si{};
+ si.cb = sizeof(si);
PROCESS_INFORMATION pi;
if (!CreateProcessW(nullptr, const_cast<LPWSTR>(o3tl::toW(sCmdLine.getStr())), nullptr,