Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e0581b38
Commit
e0581b38
authored
Sep 16, 2013
by
Bruno Jesus
Committed by
Alexandre Julliard
Sep 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Advertise protocol entries as default.
parent
f9c76be0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
socket.c
dlls/ws2_32/socket.c
+5
-0
sock.c
dlls/ws2_32/tests/sock.c
+2
-2
No files found.
dlls/ws2_32/socket.c
View file @
e0581b38
...
...
@@ -1613,6 +1613,7 @@ static INT WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
XP1_GUARANTEED_DELIVERY
;
info
->
ProviderId
=
ProviderIdIP
;
info
->
dwCatalogEntryId
=
0x3e9
;
info
->
dwProviderFlags
=
PFL_MATCHES_PROTOCOL_ZERO
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
info
->
iAddressFamily
=
WS_AF_INET
;
...
...
@@ -1628,6 +1629,7 @@ static INT WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
XP1_CONNECTIONLESS
;
info
->
ProviderId
=
ProviderIdIP
;
info
->
dwCatalogEntryId
=
0x3ea
;
info
->
dwProviderFlags
=
PFL_MATCHES_PROTOCOL_ZERO
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
info
->
iAddressFamily
=
WS_AF_INET
;
...
...
@@ -1644,6 +1646,7 @@ static INT WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
XP1_CONNECTIONLESS
;
info
->
ProviderId
=
ProviderIdIPX
;
info
->
dwCatalogEntryId
=
0x406
;
info
->
dwProviderFlags
=
PFL_MATCHES_PROTOCOL_ZERO
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
info
->
iAddressFamily
=
WS_AF_IPX
;
...
...
@@ -1661,6 +1664,7 @@ static INT WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
XP1_GUARANTEED_DELIVERY
;
info
->
ProviderId
=
ProviderIdSPX
;
info
->
dwCatalogEntryId
=
0x407
;
info
->
dwProviderFlags
=
PFL_MATCHES_PROTOCOL_ZERO
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
info
->
iAddressFamily
=
WS_AF_IPX
;
...
...
@@ -1677,6 +1681,7 @@ static INT WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
info
->
ProviderId
=
ProviderIdSPX
;
info
->
dwCatalogEntryId
=
0x409
;
info
->
dwProviderFlags
=
PFL_MATCHES_PROTOCOL_ZERO
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
info
->
iAddressFamily
=
WS_AF_IPX
;
...
...
dlls/ws2_32/tests/sock.c
View file @
e0581b38
...
...
@@ -2000,22 +2000,22 @@ todo_wine
ok
(
sock
!=
INVALID_SOCKET
,
"Failed to create socket: %d
\n
"
,
WSAGetLastError
());
todo_wine
{
size
=
sizeof
(
socktype
);
socktype
=
0xdead
;
err
=
getsockopt
(
sock
,
SOL_SOCKET
,
SO_TYPE
,
(
char
*
)
&
socktype
,
&
size
);
todo_wine
ok
(
!
err
,
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
for
(
i
=
0
;
i
<
items
;
i
++
)
{
if
(
pi
[
i
].
dwProviderFlags
&
PFL_MATCHES_PROTOCOL_ZERO
)
{
todo_wine
ok
(
socktype
==
pi
[
i
].
iSocketType
,
"Wrong socket type, expected %d received %d
\n
"
,
pi
[
i
].
iSocketType
,
socktype
);
break
;
}
}
ok
(
i
!=
items
,
"Creating a socket without protocol and socket type didn't work
\n
"
);
}
closesocket
(
sock
);
/* when no socket type is specified the first entry from WSAEnumProtocols
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment