diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 15:21:42 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 15:22:10 (GMT) |
commit | c8fc2b44213ded1bd789b4cd3106c4f0b0bfa78b (patch) | |
tree | 192bf58a4dac568a36fcb1037a2a9889de64bfec /src/corelib | |
parent | 7a48877fb523491dcf67aed2b17d497d76754180 (diff) | |
download | Qt-c8fc2b44213ded1bd789b4cd3106c4f0b0bfa78b.zip Qt-c8fc2b44213ded1bd789b4cd3106c4f0b0bfa78b.tar.gz Qt-c8fc2b44213ded1bd789b4cd3106c4f0b0bfa78b.tar.bz2 |
Fix compilation on WinCE and MinGW by memsetting the OVERLAPPED struct.
Apparently the SDKs cannot agree on the contents of this struct, so
let's memset the entire thing.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qwindowspipewriter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/io/qwindowspipewriter.cpp b/src/corelib/io/qwindowspipewriter.cpp index 3eb2411..417439f 100644 --- a/src/corelib/io/qwindowspipewriter.cpp +++ b/src/corelib/io/qwindowspipewriter.cpp @@ -40,6 +40,7 @@ ****************************************************************************/ #include "qwindowspipewriter_p.h" +#include <string.h> QT_BEGIN_NAMESPACE @@ -101,9 +102,7 @@ qint64 QWindowsPipeWriter::write(const char *ptr, qint64 maxlen) void QWindowsPipeWriter::run() { OVERLAPPED overl; - overl.Internal = 0; - overl.InternalHigh = 0; - overl.Pointer = 0; + memset(&overl, 0, sizeof overl); overl.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); forever { lock.lock(); |