[Libreoffice-commits] core.git: extensions/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 1 17:31:41 UTC 2019
extensions/source/scanner/scanwin.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit d010358198c69c32a32cdcf0dd802fbc47556391
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 1 10:36:36 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 1 19:29:54 2019 +0200
Silence -Werror,-Wmissing-field-initializers (clang-cl)
Change-Id: I4c6a820a91f620e9677f6a946265c38e9ca6ef73
Reviewed-on: https://gerrit.libreoffice.org/79933
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index 11e2e7345df4..48b2c78bd90e 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#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>
@@ -261,7 +265,9 @@ 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{ sizeof(si) }; // null-initialize all but cb
+ STARTUPINFOW si;
+ std::memset(&si, 0, sizeof si);
+ si.cb = sizeof(STARTUPINFOW);
PROCESS_INFORMATION pi;
if (!CreateProcessW(nullptr, const_cast<LPWSTR>(o3tl::toW(sCmdLine.getStr())), nullptr,
More information about the Libreoffice-commits
mailing list