From ab5fbebff587ae67e92c07c993f001b4130877d7 Mon Sep 17 00:00:00 2001
From: Hans Leidekker <hans@codeweavers.com>
Date: Fri, 12 Nov 2010 13:07:40 +0100
Subject: [PATCH] programs: Add a stub implementation of regsvcs.exe.

---
 configure                    |  1 +
 configure.ac                 |  1 +
 programs/regsvcs/Makefile.in |  8 ++++++++
 programs/regsvcs/main.c      | 33 +++++++++++++++++++++++++++++++++
 tools/wine.inf.in            |  1 +
 5 files changed, 44 insertions(+)
 create mode 100644 programs/regsvcs/Makefile.in
 create mode 100644 programs/regsvcs/main.c

diff --git a/configure b/configure
index 9b1cb220f2a..3871a74821a 100755
--- a/configure
+++ b/configure
@@ -15186,6 +15186,7 @@ wine_fn_config_program progman enable_progman install
 wine_fn_config_program reg enable_reg install
 wine_fn_config_program regedit enable_regedit installbin
 wine_fn_config_test programs/regedit/tests regedit.exe_test
+wine_fn_config_program regsvcs enable_regsvcs install
 wine_fn_config_program regsvr32 enable_regsvr32 installbin
 wine_fn_config_program rpcss enable_rpcss install
 wine_fn_config_program rundll.exe16 enable_win16 install
diff --git a/configure.ac b/configure.ac
index 04ed14f3639..93a62214bc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2843,6 +2843,7 @@ WINE_CONFIG_PROGRAM(progman,install)
 WINE_CONFIG_PROGRAM(reg,install)
 WINE_CONFIG_PROGRAM(regedit,installbin)
 WINE_CONFIG_TEST(programs/regedit/tests)
+WINE_CONFIG_PROGRAM(regsvcs,install)
 WINE_CONFIG_PROGRAM(regsvr32,installbin)
 WINE_CONFIG_PROGRAM(rpcss,install)
 WINE_CONFIG_PROGRAM(rundll.exe16,install,enable_win16)
diff --git a/programs/regsvcs/Makefile.in b/programs/regsvcs/Makefile.in
new file mode 100644
index 00000000000..4c808cdc211
--- /dev/null
+++ b/programs/regsvcs/Makefile.in
@@ -0,0 +1,8 @@
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+MODULE    = regsvcs.exe
+APPMODE   = -mconsole -municode
+
+C_SRCS = \
+	main.c
+
+@MAKE_PROG_RULES@
diff --git a/programs/regsvcs/main.c b/programs/regsvcs/main.c
new file mode 100644
index 00000000000..570686d6b3c
--- /dev/null
+++ b/programs/regsvcs/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2010 Hans Leidekker for CodeWeavers
+ *
+ * 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 "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(regsvcs);
+
+int wmain(int argc, WCHAR *argv[])
+{
+    int i;
+
+    WINE_FIXME("stub:");
+    for (i = 0; i < argc; i++)
+        WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
+    WINE_FIXME("\n");
+
+    return 0;
+}
diff --git a/tools/wine.inf.in b/tools/wine.inf.in
index 88b79acbffb..0bdfa361eb3 100644
--- a/tools/wine.inf.in
+++ b/tools/wine.inf.in
@@ -2600,6 +2600,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
 10,Microsoft.NET\Framework\v1.1.4322,aspnet_regiis.exe
 10,Microsoft.NET\Framework\v1.1.4322,ngen.exe
 10,Microsoft.NET\Framework\v1.1.4322,fusion.dll
+10,Microsoft.NET\Framework\v1.1.4322,regsvcs.exe
 10,Microsoft.NET\Framework\v2.0.50727,ngen.exe
 10,Microsoft.NET\Framework\v2.0.50727,fusion.dll
 10,Microsoft.NET\Framework\v4.0.30319,ngen.exe
-- 
GitLab