diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2010-03-30 14:33:12 +1000 |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-03-30 14:33:12 +1000 |
commit | b353f98da10f4b8b80f6be70951f147d580999e8 (patch) | |
tree | 9cc0c9e41a173c9c89f57f1ec5bd5e6d0e8540c8 | |
parent | 0d7a0b1bf2ab50621ed662a3e178d2ad5add4114 (diff) | |
download | qt4-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
-rw-r--r-- | src/corelib/io/qwindowspipewriter.cpp | 5 |
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(); |