diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-23 14:09:01 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-23 15:49:15 (GMT) |
commit | 6b072a0c0a756a099d8dfd7827918be5adf7bf1f (patch) | |
tree | 4d6e92481cdf3420656604797353a91673489364 /src/corelib/io | |
parent | 74ce3dea8b3ea06d61cef4e729f6a95f670461fe (diff) | |
download | Qt-6b072a0c0a756a099d8dfd7827918be5adf7bf1f.zip Qt-6b072a0c0a756a099d8dfd7827918be5adf7bf1f.tar.gz Qt-6b072a0c0a756a099d8dfd7827918be5adf7bf1f.tar.bz2 |
compile fix for mingw (also removes some warnings)
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qwindowspipewriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/io/qwindowspipewriter.cpp b/src/corelib/io/qwindowspipewriter.cpp index 394323f..da992d0 100644 --- a/src/corelib/io/qwindowspipewriter.cpp +++ b/src/corelib/io/qwindowspipewriter.cpp @@ -100,8 +100,7 @@ qint64 QWindowsPipeWriter::write(const char *ptr, qint64 maxlen) void QWindowsPipeWriter::run() { - OVERLAPPED overl = {0, 0, 0, 0, NULL}; - overl.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + OVERLAPPED overl = {0, 0, { {0, 0 } }, CreateEvent(NULL, TRUE, FALSE, NULL)}; forever { lock.lock(); while(data.isEmpty() && (!quitNow)) { |