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
10897a1f
Commit
10897a1f
authored
Jun 06, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Call WSACleanup when the dll is unloaded.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70cedb3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
listener.c
dlls/webservices/listener.c
+22
-0
No files found.
dlls/webservices/listener.c
View file @
10897a1f
...
...
@@ -31,6 +31,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
webservices
);
HINSTANCE
webservices_instance
;
static
BOOL
winsock_loaded
;
static
BOOL
WINAPI
winsock_startup
(
INIT_ONCE
*
once
,
void
*
param
,
void
**
ctx
)
...
...
@@ -48,6 +50,26 @@ void winsock_init(void)
InitOnceExecuteOnce
(
&
once
,
winsock_startup
,
NULL
,
NULL
);
}
/******************************************************************
* DllMain (webservices.@)
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
void
*
reserved
)
{
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
webservices_instance
=
hinst
;
DisableThreadLibraryCalls
(
hinst
);
break
;
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
if
(
winsock_loaded
)
WSACleanup
();
break
;
}
return
TRUE
;
}
static
const
struct
prop_desc
listener_props
[]
=
{
{
sizeof
(
ULONG
),
FALSE
},
/* WS_LISTENER_PROPERTY_LISTEN_BACKLOG */
...
...
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