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
1e198e17
Commit
1e198e17
authored
Sep 21, 2020
by
Haidong Yu
Committed by
Alexandre Julliard
Sep 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Add missing LeaveCriticalSection.
Signed-off-by:
Haidong Yu
<
yuhaidong@uniontech.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4eb3ab95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
socket.c
dlls/ws2_32/socket.c
+3
-0
No files found.
dlls/ws2_32/socket.c
View file @
1e198e17
...
...
@@ -494,7 +494,10 @@ static BOOL socket_list_add(SOCKET socket)
}
new_size
=
max
(
socket_list_size
*
2
,
8
);
if
(
!
(
new_array
=
heap_realloc
(
socket_list
,
new_size
*
sizeof
(
*
socket_list
))))
{
LeaveCriticalSection
(
&
cs_socket_list
);
return
FALSE
;
}
socket_list
=
new_array
;
memset
(
socket_list
+
socket_list_size
,
0
,
(
new_size
-
socket_list_size
)
*
sizeof
(
*
socket_list
));
socket_list
[
socket_list_size
]
=
socket
;
...
...
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