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
a839455b
Commit
a839455b
authored
Mar 24, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Assign to structs instead of using memcpy.
parent
a0c18ce7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
protocol.c
dlls/ws2_32/protocol.c
+10
-10
No files found.
dlls/ws2_32/protocol.c
View file @
a839455b
...
...
@@ -99,7 +99,7 @@ static INT WINSOCK_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
info
->
dwServiceFlags1
=
XP1_PARTIAL_MESSAGE
|
XP1_EXPEDITED_DATA
|
XP1_GRACEFUL_CLOSE
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdIP
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdIP
;
info
->
dwCatalogEntryId
=
0x3e9
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -114,7 +114,7 @@ static INT WINSOCK_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
info
->
dwServiceFlags1
=
XP1_PARTIAL_MESSAGE
|
XP1_SUPPORT_BROADCAST
|
XP1_SUPPORT_MULTIPOINT
|
XP1_MESSAGE_ORIENTED
|
XP1_CONNECTIONLESS
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdIP
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdIP
;
info
->
dwCatalogEntryId
=
0x3ea
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -130,7 +130,7 @@ static INT WINSOCK_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
info
->
dwServiceFlags1
=
XP1_PARTIAL_MESSAGE
|
XP1_SUPPORT_BROADCAST
|
XP1_SUPPORT_MULTIPOINT
|
XP1_MESSAGE_ORIENTED
|
XP1_CONNECTIONLESS
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdIPX
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdIPX
;
info
->
dwCatalogEntryId
=
0x406
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -147,7 +147,7 @@ static INT WINSOCK_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_PSEUDO_STREAM
|
XP1_MESSAGE_ORIENTED
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdSPX
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdSPX
;
info
->
dwCatalogEntryId
=
0x407
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -163,7 +163,7 @@ static INT WINSOCK_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_GRACEFUL_CLOSE
|
XP1_PSEUDO_STREAM
|
XP1_MESSAGE_ORIENTED
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdSPX
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdSPX
;
info
->
dwCatalogEntryId
=
0x409
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -203,7 +203,7 @@ static INT WINSOCK_EnterSingleProtocolA( INT protocol, WSAPROTOCOL_INFOA* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_EXPEDITED_DATA
|
XP1_GRACEFUL_CLOSE
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdIP
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdIP
;
info
->
dwCatalogEntryId
=
0x3e9
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -218,7 +218,7 @@ static INT WINSOCK_EnterSingleProtocolA( INT protocol, WSAPROTOCOL_INFOA* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_SUPPORT_BROADCAST
|
XP1_SUPPORT_MULTIPOINT
|
XP1_MESSAGE_ORIENTED
|
XP1_CONNECTIONLESS
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdIP
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdIP
;
info
->
dwCatalogEntryId
=
0x3ea
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -234,7 +234,7 @@ static INT WINSOCK_EnterSingleProtocolA( INT protocol, WSAPROTOCOL_INFOA* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_SUPPORT_BROADCAST
|
XP1_SUPPORT_MULTIPOINT
|
XP1_MESSAGE_ORIENTED
|
XP1_CONNECTIONLESS
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdIPX
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdIPX
;
info
->
dwCatalogEntryId
=
0x406
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -251,7 +251,7 @@ static INT WINSOCK_EnterSingleProtocolA( INT protocol, WSAPROTOCOL_INFOA* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_PSEUDO_STREAM
|
XP1_MESSAGE_ORIENTED
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdSPX
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdSPX
;
info
->
dwCatalogEntryId
=
0x407
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
@@ -267,7 +267,7 @@ static INT WINSOCK_EnterSingleProtocolA( INT protocol, WSAPROTOCOL_INFOA* info )
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_GRACEFUL_CLOSE
|
XP1_PSEUDO_STREAM
|
XP1_MESSAGE_ORIENTED
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
memcpy
(
&
info
->
ProviderId
,
&
ProviderIdSPX
,
sizeof
(
GUID
)
)
;
info
->
ProviderId
=
ProviderIdSPX
;
info
->
dwCatalogEntryId
=
0x409
;
info
->
ProtocolChain
.
ChainLen
=
1
;
info
->
iVersion
=
2
;
...
...
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