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
3ad35f8a
Commit
3ad35f8a
authored
Aug 29, 2002
by
Rein Klazes
Committed by
Alexandre Julliard
Aug 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In WSAStartup() don't touch the lpVendorInfo field of the WSADATA
structure.
parent
5ece353a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
25 deletions
+8
-25
socket.c
dlls/winsock/socket.c
+8
-25
No files found.
dlls/winsock/socket.c
View file @
3ad35f8a
...
...
@@ -700,28 +700,6 @@ INT16 WINAPI WSAStartup16(UINT16 wVersionRequested, LPWSADATA16 lpWSAData)
*/
int
WINAPI
WSAStartup
(
WORD
wVersionRequested
,
LPWSADATA
lpWSAData
)
{
static
const
WSADATA
data
=
{
0x0202
,
0x0202
,
"WINE Sockets 2.0"
,
#ifdef linux
"Linux"
,
#elif defined(__NetBSD__)
"NetBSD"
,
#elif defined(sunos)
"SunOS"
,
#elif defined(__FreeBSD__)
"FreeBSD"
,
#elif defined(__OpenBSD__)
"OpenBSD"
,
#else
"Unknown"
,
#endif
WS_MAX_SOCKETS_PER_PROCESS
,
WS_MAX_UDP_DATAGRAM
,
NULL
};
TRACE
(
"verReq=%x
\n
"
,
wVersionRequested
);
if
(
LOBYTE
(
wVersionRequested
)
<
1
)
...
...
@@ -744,11 +722,16 @@ int WINAPI WSAStartup(WORD wVersionRequested, LPWSADATA lpWSAData)
num_startup
++
;
/* return winsock information */
memcpy
(
lpWSAData
,
&
data
,
sizeof
(
data
));
/* that's the whole of the negotiation for now */
lpWSAData
->
wVersion
=
wVersionRequested
;
/* return winsock information */
lpWSAData
->
wHighVersion
=
0x0202
;
strcpy
(
lpWSAData
->
szDescription
,
"WinSock 2.0"
);
strcpy
(
lpWSAData
->
szSystemStatus
,
"Running"
);
lpWSAData
->
iMaxSockets
=
WS_MAX_SOCKETS_PER_PROCESS
;
lpWSAData
->
iMaxUdpDg
=
WS_MAX_UDP_DATAGRAM
;
/* don't do anything with lpWSAData->lpVendorInfo */
/* (some apps don't allocate the space for this field) */
TRACE
(
"succeeded
\n
"
);
return
0
;
...
...
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