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
c058490b
Commit
c058490b
authored
Mar 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: _res is per-thread in glibc.
This mirrors Dan Kegel's fix for iphlpapi.
parent
af68ef68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
query.c
dlls/dnsapi/query.c
+2
-6
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+0
-1
No files found.
dlls/dnsapi/query.c
View file @
c058490b
...
...
@@ -65,16 +65,12 @@ static CRITICAL_SECTION resolver_cs = { &resolver_cs_debug, -1, 0, 0, 0, 0 };
#define LOCK_RESOLVER() do { EnterCriticalSection( &resolver_cs ); } while (0)
#define UNLOCK_RESOLVER() do { LeaveCriticalSection( &resolver_cs ); } while (0)
static
int
resolver_initialised
;
/* 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
void
initialise_resolver
(
void
)
{
if
(
!
resolver_initialised
)
{
if
((
_res
.
options
&
RES_INIT
)
==
0
)
res_init
();
resolver_initialised
=
1
;
}
}
static
const
char
*
dns_section_to_str
(
ns_sect
section
)
...
...
dlls/iphlpapi/iphlpapi_main.c
View file @
c058490b
...
...
@@ -69,7 +69,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
/* 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. */
/* FIXME: should do same fix in dnsapi (or use dnsapi here?) */
static
void
initialise_resolver
(
void
)
{
if
((
_res
.
options
&
RES_INIT
)
==
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