mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Added srvcli-dll patchset
This commit is contained in:
parent
298af8f9fe
commit
424cc0395c
@ -245,6 +245,7 @@ patch_enable_all ()
|
||||
enable_shlwapi_SHAddDataBlock="$1"
|
||||
enable_shlwapi_UrlCanonicalize="$1"
|
||||
enable_shlwapi_UrlCombine="$1"
|
||||
enable_srvcli_dll="$1"
|
||||
enable_stdole32_idl_Typelib="$1"
|
||||
enable_stdole32_tlb_SLTG_Typelib="$1"
|
||||
enable_tasklist_basics="$1"
|
||||
@ -825,6 +826,9 @@ patch_enable ()
|
||||
shlwapi-UrlCombine)
|
||||
enable_shlwapi_UrlCombine="$2"
|
||||
;;
|
||||
srvcli-dll)
|
||||
enable_srvcli_dll="$2"
|
||||
;;
|
||||
stdole32.idl-Typelib)
|
||||
enable_stdole32_idl_Typelib="$2"
|
||||
;;
|
||||
@ -4824,6 +4828,21 @@ if test "$enable_shlwapi_UrlCombine" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset srvcli-dll
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#49739] Add srvcli dll
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * configure.ac, dlls/srvcli/Makefile.in, dlls/srvcli/main.c, dlls/srvcli/srvcli.spec, tools/make_specfiles
|
||||
# |
|
||||
if test "$enable_srvcli_dll" -eq 1; then
|
||||
patch_apply srvcli-dll/0001-srvcli-New-DLL.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Alistair Leslie-Hughes", "srvcli: New DLL.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset stdole32.idl-Typelib
|
||||
# |
|
||||
# | Modified files:
|
||||
|
168
patches/srvcli-dll/0001-srvcli-New-DLL.patch
Normal file
168
patches/srvcli-dll/0001-srvcli-New-DLL.patch
Normal file
@ -0,0 +1,168 @@
|
||||
From 5b036c3ee7ad83867acca8ddda118f368e7d4760 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Wed, 26 Aug 2020 18:14:51 +1000
|
||||
Subject: [PATCH] srvcli: New DLL
|
||||
|
||||
---
|
||||
configure.ac | 1 +
|
||||
dlls/srvcli/Makefile.in | 5 ++++
|
||||
dlls/srvcli/main.c | 41 +++++++++++++++++++++++++++
|
||||
dlls/srvcli/srvcli.spec | 61 +++++++++++++++++++++++++++++++++++++++++
|
||||
tools/make_specfiles | 1 +
|
||||
5 files changed, 109 insertions(+)
|
||||
create mode 100644 dlls/srvcli/Makefile.in
|
||||
create mode 100644 dlls/srvcli/main.c
|
||||
create mode 100644 dlls/srvcli/srvcli.spec
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2bb56f29e30..248481ee21d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3809,6 +3809,7 @@ WINE_CONFIG_MAKEFILE(dlls/sound.drv16,enable_win16)
|
||||
WINE_CONFIG_MAKEFILE(dlls/spoolss)
|
||||
WINE_CONFIG_MAKEFILE(dlls/spoolss/tests)
|
||||
WINE_CONFIG_MAKEFILE(dlls/srclient)
|
||||
+WINE_CONFIG_MAKEFILE(dlls/srvcli)
|
||||
WINE_CONFIG_MAKEFILE(dlls/sspicli)
|
||||
WINE_CONFIG_MAKEFILE(dlls/stdole2.tlb)
|
||||
WINE_CONFIG_MAKEFILE(dlls/stdole32.tlb)
|
||||
diff --git a/dlls/srvcli/Makefile.in b/dlls/srvcli/Makefile.in
|
||||
new file mode 100644
|
||||
index 00000000000..716cc1b3867
|
||||
--- /dev/null
|
||||
+++ b/dlls/srvcli/Makefile.in
|
||||
@@ -0,0 +1,5 @@
|
||||
+MODULE = srvcli.dll
|
||||
+
|
||||
+EXTRADLLFLAGS = -mno-cygwin
|
||||
+
|
||||
+C_SRCS = main.c
|
||||
diff --git a/dlls/srvcli/main.c b/dlls/srvcli/main.c
|
||||
new file mode 100644
|
||||
index 00000000000..0df8e00d0fa
|
||||
--- /dev/null
|
||||
+++ b/dlls/srvcli/main.c
|
||||
@@ -0,0 +1,41 @@
|
||||
+/*
|
||||
+ *
|
||||
+ * Copyright (C) 2020 Alistair Leslie-Hughes
|
||||
+ *
|
||||
+ * This library is free software; you can redistribute it and/or
|
||||
+ * modify it under the terms of the GNU Lesser General Public
|
||||
+ * License as published by the Free Software Foundation; either
|
||||
+ * version 2.1 of the License, or (at your option) any later version.
|
||||
+ *
|
||||
+ * This library is distributed in the hope that it will be useful,
|
||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ * Lesser General Public License for more details.
|
||||
+ *
|
||||
+ * You should have received a copy of the GNU Lesser General Public
|
||||
+ * License along with this library; if not, write to the Free Software
|
||||
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
+ */
|
||||
+#include <stdarg.h>
|
||||
+
|
||||
+#include "windef.h"
|
||||
+#include "winbase.h"
|
||||
+#include "wine/debug.h"
|
||||
+
|
||||
+WINE_DEFAULT_DEBUG_CHANNEL(srvcli);
|
||||
+
|
||||
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
|
||||
+{
|
||||
+ TRACE("(%p, %u, %p)\n", instance, reason, reserved);
|
||||
+
|
||||
+ switch (reason)
|
||||
+ {
|
||||
+ case DLL_WINE_PREATTACH:
|
||||
+ return FALSE; /* prefer native version */
|
||||
+ case DLL_PROCESS_ATTACH:
|
||||
+ DisableThreadLibraryCalls(instance);
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ return TRUE;
|
||||
+}
|
||||
diff --git a/dlls/srvcli/srvcli.spec b/dlls/srvcli/srvcli.spec
|
||||
new file mode 100644
|
||||
index 00000000000..821724a7d4d
|
||||
--- /dev/null
|
||||
+++ b/dlls/srvcli/srvcli.spec
|
||||
@@ -0,0 +1,61 @@
|
||||
+@ stub I_NetDfsGetVersion
|
||||
+@ stub I_NetServerSetServiceBits
|
||||
+@ stub I_NetServerSetServiceBitsEx
|
||||
+@ stub LocalAliasGet
|
||||
+@ stub LocalFileClose
|
||||
+@ stub LocalFileEnum
|
||||
+@ stub LocalFileEnumEx
|
||||
+@ stub LocalFileGetInfo
|
||||
+@ stub LocalFileGetInfoEx
|
||||
+@ stub LocalServerCertificateMappingAdd
|
||||
+@ stub LocalServerCertificateMappingEnum
|
||||
+@ stub LocalServerCertificateMappingGet
|
||||
+@ stub LocalServerCertificateMappingRemove
|
||||
+@ stub LocalSessionDel
|
||||
+@ stub LocalSessionEnum
|
||||
+@ stub LocalSessionEnumEx
|
||||
+@ stub LocalSessionGetInfo
|
||||
+@ stub LocalSessionGetInfoEx
|
||||
+@ stub LocalShareAdd
|
||||
+@ stub LocalShareDelEx
|
||||
+@ stub LocalShareEnum
|
||||
+@ stub LocalShareEnumEx
|
||||
+@ stub LocalShareGetInfo
|
||||
+@ stub LocalShareGetInfoEx
|
||||
+@ stub LocalShareSetInfo
|
||||
+@ stub NetConnectionEnum
|
||||
+@ stub NetFileClose
|
||||
+@ stdcall NetFileEnum(wstr wstr wstr long ptr long ptr ptr ptr) netapi32.NetFileEnum
|
||||
+@ stub NetFileGetInfo
|
||||
+@ stub NetRemoteTOD
|
||||
+@ stub NetServerAliasAdd
|
||||
+@ stub NetServerAliasDel
|
||||
+@ stub NetServerAliasEnum
|
||||
+@ stub NetServerComputerNameAdd
|
||||
+@ stub NetServerComputerNameDel
|
||||
+@ stdcall NetServerDiskEnum(wstr long ptr long ptr ptr ptr) netapi32.NetServerDiskEnum
|
||||
+@ stdcall NetServerGetInfo(wstr long ptr) netapi32.NetServerGetInfo
|
||||
+@ stub NetServerSetInfo
|
||||
+@ stub NetServerStatisticsGet
|
||||
+@ stub NetServerTransportAdd
|
||||
+@ stub NetServerTransportAddEx
|
||||
+@ stub NetServerTransportDel
|
||||
+@ stub NetServerTransportEnum
|
||||
+@ stub NetSessionDel
|
||||
+@ stdcall NetSessionEnum(wstr wstr wstr long ptr long ptr ptr ptr) netapi32.NetSessionEnum
|
||||
+@ stub NetSessionGetInfo
|
||||
+@ stdcall NetShareAdd(wstr long ptr ptr) netapi32.NetShareAdd
|
||||
+@ stub NetShareCheck
|
||||
+@ stdcall NetShareDel(wstr wstr long) netapi32.NetShareDel
|
||||
+@ stub NetShareDelEx
|
||||
+@ stub NetShareDelSticky
|
||||
+@ stdcall NetShareEnum(wstr long ptr long ptr ptr ptr) netapi32.NetShareEnum
|
||||
+@ stub NetShareEnumSticky
|
||||
+@ stdcall NetShareGetInfo(wstr wstr long ptr) netapi32.NetShareGetInfo
|
||||
+@ stub NetShareSetInfo
|
||||
+@ stub NetpsNameCanonicalize
|
||||
+@ stub NetpsNameCompare
|
||||
+@ stub NetpsNameValidate
|
||||
+@ stub NetpsPathCanonicalize
|
||||
+@ stub NetpsPathCompare
|
||||
+@ stub NetpsPathType
|
||||
diff --git a/tools/make_specfiles b/tools/make_specfiles
|
||||
index a1dd71ed332..f8245d1adba 100755
|
||||
--- a/tools/make_specfiles
|
||||
+++ b/tools/make_specfiles
|
||||
@@ -177,6 +177,7 @@ my @dll_groups =
|
||||
[
|
||||
"netapi32",
|
||||
"ext-ms-win-domainjoin-netjoin-l1-1-0",
|
||||
+ "srvcli",
|
||||
],
|
||||
[
|
||||
"ntdll",
|
||||
--
|
||||
2.28.0
|
||||
|
1
patches/srvcli-dll/definition
Normal file
1
patches/srvcli-dll/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [49739] Add srvcli dll
|
Loading…
Reference in New Issue
Block a user