break;
DWORD dwError = GetLastError();
if (dwError != ERROR_PIPE_BUSY || !--attempts) {
- qErrnoWarning(dwError, "QProcess: CreateNamedPipe failed.", GetLastError());
+ qErrnoWarning(dwError, "QProcess: CreateNamedPipe failed.");
return;
}
}
FILE_FLAG_OVERLAPPED,
NULL);
if (hWrite == INVALID_HANDLE_VALUE) {
- qWarning("QProcess: CreateFile failed with error code %d.\n", GetLastError());
+ qErrnoWarning("QProcess: CreateFile failed.");
CloseHandle(hRead);
return;
}
: hPort(INVALID_HANDLE_VALUE)
{
setObjectName(QLatin1String("I/O completion port thread"));
- HANDLE hIOCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, NULL, 0);
+ HANDLE hIOCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0);
if (!hIOCP) {
qErrnoWarning("CreateIoCompletionPort failed.");
return;
~QWinIoCompletionPort()
{
- PostQueuedCompletionStatus(hPort, 0, NULL, NULL);
+ PostQueuedCompletionStatus(hPort, 0, 0, NULL);
QThread::wait();
CloseHandle(hPort);
}
QLocalSocketPrivate::QLocalSocketPrivate() : QIODevicePrivate(),
handle(INVALID_HANDLE_VALUE),
- pipeReader(0),
pipeWriter(0),
+ pipeReader(0),
error(QLocalSocket::UnknownSocketError),
state(QLocalSocket::UnconnectedState)
{
ipv6only = 1;
ipv6only = ::setsockopt(socketDescriptor, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&ipv6only, sizeof(ipv6only) );
}
+#else
+ Q_UNUSED(ipv6only)
#endif
break;
case QAbstractSocket::IPv4Protocol:
// We mean it.
//
-// Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
-#define QT_BUILD_GUI_LIB
#include <QtGui/private/qfontengine_p.h>
-#undef QT_BUILD_GUI_LIB
#include <QtGui/QImage>
#include <QtCore/QSharedPointer>