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
c46d25b1
Commit
c46d25b1
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Use the Unix call helpers.
parent
6674e6d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
netapi32.c
dlls/netapi32/netapi32.c
+3
-6
No files found.
dlls/netapi32/netapi32.c
View file @
c46d25b1
...
...
@@ -55,9 +55,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
DEFINE_GUID
(
GUID_NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
static
unixlib_handle_t
samba_handle
;
#define SAMBA_CALL(func, args) __wine_unix_call( samba_handle, unix_ ## func, args )
#define SAMBA_CALL(func, args) WINE_UNIX_CALL( unix_ ## func, args )
static
INIT_ONCE
init_once
=
INIT_ONCE_STATIC_INIT
;
...
...
@@ -69,7 +67,7 @@ static BOOL WINAPI load_samba( INIT_ONCE *once, void *param, void **context )
static
BOOL
samba_init
(
void
)
{
return
samba
_handle
&&
InitOnceExecuteOnce
(
&
init_once
,
load_samba
,
NULL
,
NULL
);
return
__wine_unixlib
_handle
&&
InitOnceExecuteOnce
(
&
init_once
,
load_samba
,
NULL
,
NULL
);
}
/************************************************************
...
...
@@ -96,8 +94,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstDLL
,
MemoryWineUnixFuncs
,
&
samba_handle
,
sizeof
(
samba_handle
),
NULL
);
__wine_init_unix_call
();
DisableThreadLibraryCalls
(
hinstDLL
);
NetBIOSInit
();
NetBTInit
();
...
...
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