desktop/source/app/cmdlinehelp.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b12b4fdaf63dd4ae350cf95b5d89a9dbad107abd
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Jan 6 11:18:02 2017 +0100

    Work around clang-cl -Werror,-Wmissing-field-initializers
    
    ...the same way as in other uses of GetStartupInfo
    
    Change-Id: Ieeadf028d15c915df32e055e3725513b2047da4d

diff --git a/desktop/source/app/cmdlinehelp.cxx 
b/desktop/source/app/cmdlinehelp.cxx
index 26ce708..89ef21a 100644
--- a/desktop/source/app/cmdlinehelp.cxx
+++ b/desktop/source/app/cmdlinehelp.cxx
@@ -182,7 +182,8 @@ namespace desktop
                     hErr = GetStdHandle(STD_ERROR_HANDLE);
                 if (hOut == NULL) // application does not have associated 
standard handles
                 {
-                    STARTUPINFOA aStartupInfo{ sizeof(aStartupInfo) };
+                    STARTUPINFOA aStartupInfo;
+                    aStartupInfo.cb = sizeof(aStartupInfo);
                     GetStartupInfoA(&aStartupInfo);
                     if ((aStartupInfo.dwFlags & STARTF_USESTDHANDLES) == 
STARTF_USESTDHANDLES)
                     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to