Alexandre Julliard : netapi32: Fix build when libnetapi is missing.

Alexandre Julliard julliard at winehq.org
Mon Apr 19 15:38:09 CDT 2021


Module: wine
Branch: master
Commit: e8d87a84533ce5fdf1ef47b72c6c8d2d195ef944
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e8d87a84533ce5fdf1ef47b72c6c8d2d195ef944

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Apr 18 11:39:14 2021 +0200

netapi32: Fix build when libnetapi is missing.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/netapi32/unixlib.c | 62 +++++++++++++++++++++++++++----------------------
 1 file changed, 34 insertions(+), 28 deletions(-)

diff --git a/dlls/netapi32/unixlib.c b/dlls/netapi32/unixlib.c
index 1506e616c06..6a8999a6de4 100644
--- a/dlls/netapi32/unixlib.c
+++ b/dlls/netapi32/unixlib.c
@@ -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,




More information about the wine-cvs mailing list