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
ef1342ba
Commit
ef1342ba
authored
Jul 01, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Protect res_init call with critical section.
parent
95ae71f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+11
-0
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
ef1342ba
...
...
@@ -1068,10 +1068,21 @@ static void sockaddr_in6_to_WS_storage( SOCKADDR_STORAGE *dst, const struct sock
#ifdef HAVE_STRUCT___RES_STATE
/* call res_init() just once because of a bug in Mac OS X 10.4 */
/* Call once per thread on systems that have per-thread _res. */
static
CRITICAL_SECTION
res_init_cs
;
static
CRITICAL_SECTION_DEBUG
res_init_cs_debug
=
{
0
,
0
,
&
res_init_cs
,
{
&
res_init_cs_debug
.
ProcessLocksList
,
&
res_init_cs_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": res_init_cs"
)
}
};
static
CRITICAL_SECTION
res_init_cs
=
{
&
res_init_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
void
initialise_resolver
(
void
)
{
EnterCriticalSection
(
&
res_init_cs
);
if
((
_res
.
options
&
RES_INIT
)
==
0
)
res_init
();
LeaveCriticalSection
(
&
res_init_cs
);
}
static
int
get_dns_servers
(
SOCKADDR_STORAGE
*
servers
,
int
num
,
BOOL
ip4_only
)
...
...
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