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
e8d87a84
Commit
e8d87a84
authored
Apr 18, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Fix build when libnetapi is missing.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
749f8c25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
28 deletions
+34
-28
unixlib.c
dlls/netapi32/unixlib.c
+34
-28
No files found.
dlls/netapi32/unixlib.c
View file @
e8d87a84
...
...
@@ -929,34 +929,6 @@ static void libnetapi_init(void)
libnetapi_ctx
=
ctx
;
}
#else
static
NET_API_STATUS
WINAPI
server_getinfo
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
share_add
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
buf
,
LPDWORD
parm_err
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
share_del
(
LMSTR
servername
,
LMSTR
netname
,
DWORD
reserved
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
wksta_getinfo
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
void
libnetapi_init
(
void
)
{
}
#endif
/* SONAME_LIBNETAPI */
static
NET_API_STATUS
WINAPI
change_password
(
const
WCHAR
*
domainname
,
const
WCHAR
*
username
,
const
WCHAR
*
oldpassword
,
const
WCHAR
*
newpassword
)
{
...
...
@@ -1047,6 +1019,40 @@ end:
return
ret
;
}
#else
static
NET_API_STATUS
WINAPI
server_getinfo
(
const
WCHAR
*
server
,
DWORD
level
,
BYTE
**
buffer
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
share_add
(
const
WCHAR
*
server
,
DWORD
level
,
const
BYTE
*
info
,
DWORD
*
err
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
share_del
(
const
WCHAR
*
server
,
const
WCHAR
*
share
,
DWORD
reserved
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
wksta_getinfo
(
const
WCHAR
*
server
,
DWORD
level
,
BYTE
**
buffer
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
NET_API_STATUS
WINAPI
change_password
(
const
WCHAR
*
domainname
,
const
WCHAR
*
username
,
const
WCHAR
*
oldpassword
,
const
WCHAR
*
newpassword
)
{
return
ERROR_NOT_SUPPORTED
;
}
static
void
libnetapi_init
(
void
)
{
}
#endif
/* SONAME_LIBNETAPI */
static
const
struct
samba_funcs
samba_funcs
=
{
server_getinfo
,
...
...
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