summaryrefslogtreecommitdiff
path: root/src/corelib/io/qwindowspipewriter.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2010-03-30 14:33:12 +1000
committerJason McDonald <jason.mcdonald@nokia.com>2010-03-30 14:33:12 +1000
commitb353f98da10f4b8b80f6be70951f147d580999e8 (patch)
tree9cc0c9e41a173c9c89f57f1ec5bd5e6d0e8540c8 /src/corelib/io/qwindowspipewriter.cpp
parent0d7a0b1bf2ab50621ed662a3e178d2ad5add4114 (diff)
downloadqt4-tools-b353f98da10f4b8b80f6be70951f147d580999e8.tar.gz
Fix compile error on mingw.
Compile error seems to be going back and forth between mingw and wince compilers. Prefer correctness and portability over brevity by initializing each field of the struct one-by-one to guarantee portability between compilers. Reviewed-by: Lincoln Ramsay
Diffstat (limited to 'src/corelib/io/qwindowspipewriter.cpp')
-rw-r--r--src/corelib/io/qwindowspipewriter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/io/qwindowspipewriter.cpp b/src/corelib/io/qwindowspipewriter.cpp
index eb42c20d4a..3eb2411b41 100644
--- a/src/corelib/io/qwindowspipewriter.cpp
+++ b/src/corelib/io/qwindowspipewriter.cpp
@@ -100,7 +100,10 @@ qint64 QWindowsPipeWriter::write(const char *ptr, qint64 maxlen)
void QWindowsPipeWriter::run()
{
- OVERLAPPED overl = {0, 0, {{ 0 }}, 0};
+ OVERLAPPED overl;
+ overl.Internal = 0;
+ overl.InternalHigh = 0;
+ overl.Pointer = 0;
overl.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
forever {
lock.lock();