summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2010-03-30 04:33:12 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-03-30 04:33:12 (GMT)
commitb353f98da10f4b8b80f6be70951f147d580999e8 (patch)
tree9cc0c9e41a173c9c89f57f1ec5bd5e6d0e8540c8 /src
parent0d7a0b1bf2ab50621ed662a3e178d2ad5add4114 (diff)
downloadQt-b353f98da10f4b8b80f6be70951f147d580999e8.zip
Qt-b353f98da10f4b8b80f6be70951f147d580999e8.tar.gz
Qt-b353f98da10f4b8b80f6be70951f147d580999e8.tar.bz2
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')
-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 eb42c20..3eb2411 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();