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
a62d3ab8
Commit
a62d3ab8
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Use the Unix call helpers.
parent
81493d0f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
dnsapi.h
dlls/dnsapi/dnsapi.h
+1
-3
main.c
dlls/dnsapi/main.c
+1
-4
No files found.
dlls/dnsapi/dnsapi.h
View file @
a62d3ab8
...
...
@@ -129,6 +129,4 @@ enum unix_funcs
unix_query
,
};
extern
unixlib_handle_t
resolv_handle
;
#define RESOLV_CALL( func, params ) __wine_unix_call( resolv_handle, unix_ ## func, params )
#define RESOLV_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
dlls/dnsapi/main.c
View file @
a62d3ab8
...
...
@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dnsapi
);
unixlib_handle_t
resolv_handle
=
0
;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
)
{
TRACE
(
"(%p, %lu, %p)
\n
"
,
hinst
,
reason
,
reserved
);
...
...
@@ -42,8 +40,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinst
);
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinst
,
MemoryWineUnixFuncs
,
&
resolv_handle
,
sizeof
(
resolv_handle
),
NULL
))
if
(
__wine_init_unix_call
())
ERR
(
"No libresolv support, expect problems
\n
"
);
break
;
case
DLL_PROCESS_DETACH
:
...
...
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