Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
220edd52
Commit
220edd52
authored
Nov 29, 2005
by
Rein Klazes
Committed by
Alexandre Julliard
Nov 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the reference counter in WSACleanup, with regression test.
parent
7888e7a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
socket.c
dlls/winsock/socket.c
+3
-1
sock.c
dlls/winsock/tests/sock.c
+8
-1
No files found.
dlls/winsock/socket.c
View file @
220edd52
...
...
@@ -831,8 +831,10 @@ int WINAPI WSAStartup(WORD wVersionRequested, LPWSADATA lpWSAData)
*/
INT
WINAPI
WSACleanup
(
void
)
{
if
(
num_startup
)
if
(
num_startup
)
{
num_startup
--
;
return
0
;
}
SetLastError
(
WSANOTINITIALISED
);
return
SOCKET_ERROR
;
}
...
...
dlls/winsock/tests/sock.c
View file @
220edd52
...
...
@@ -709,8 +709,15 @@ static void Init (void)
static
void
Exit
(
void
)
{
INT
ret
,
err
;
TlsFree
(
tls
);
ok
(
WSACleanup
()
==
0
,
"WSACleanup failed
\n
"
);
ret
=
WSACleanup
();
err
=
WSAGetLastError
();
ok
(
ret
==
0
,
"WSACleanup failed ret = %d GetLastError is %d
\n
"
,
ret
,
err
);
ret
=
WSACleanup
();
err
=
WSAGetLastError
();
ok
(
ret
==
SOCKET_ERROR
&&
err
==
WSANOTINITIALISED
,
"WSACleanup returned %d GetLastError is %d
\n
"
,
ret
,
err
);
}
static
void
StartServer
(
LPTHREAD_START_ROUTINE
routine
,
...
...
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