WinSock: Initialize with version 2.2
It hasn't seemingly made a difference in the time since then but we were using 2.0, apparently an internal draft version. Fixes: QTBUG-130590 Change-Id: I78e25eba76dc9a3150932981f6c703eb0b7f3874 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
e58d714c47
commit
f6ccbaa7ab
@ -135,14 +135,12 @@ public:
|
|||||||
QWindowsSockInit::QWindowsSockInit()
|
QWindowsSockInit::QWindowsSockInit()
|
||||||
: version(0)
|
: version(0)
|
||||||
{
|
{
|
||||||
//### should we try for 2.2 on all platforms ??
|
|
||||||
WSAData wsadata;
|
WSAData wsadata;
|
||||||
|
|
||||||
// IPv6 requires Winsock v2.0 or better.
|
if (WSAStartup(MAKEWORD(2, 2), &wsadata) != 0) {
|
||||||
if (WSAStartup(MAKEWORD(2, 0), &wsadata) != 0) {
|
qWarning("QTcpSocketAPI: WinSock v2.2 initialization failed.");
|
||||||
qWarning("QTcpSocketAPI: WinSock v2.0 initialization failed.");
|
|
||||||
} else {
|
} else {
|
||||||
version = 0x20;
|
version = 0x22;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user