From 1885c3d9e2f1148d6e79690c75073835948ac5a8 Mon Sep 17 00:00:00 2001
From: Hans Leidekker <hans@codeweavers.com>
Date: Thu, 18 Nov 2010 12:09:11 +0100
Subject: [PATCH] programs: Add a stub implementation of servicemodelreg.exe.

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

diff --git a/configure b/configure
index 7c5035ac3c3..11e9d714d8e 100755
--- a/configure
+++ b/configure
@@ -15236,6 +15236,7 @@ wine_fn_config_program rundll.exe16 enable_win16 install
 wine_fn_config_program rundll32 enable_rundll32 install
 wine_fn_config_program sc enable_sc install
 wine_fn_config_program secedit enable_secedit install
+wine_fn_config_program servicemodelreg enable_servicemodelreg install
 wine_fn_config_program services enable_services install
 wine_fn_config_program spoolsv enable_spoolsv install
 wine_fn_config_program start enable_start install
diff --git a/configure.ac b/configure.ac
index 598673d61ce..ce708eb197f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2853,6 +2853,7 @@ WINE_CONFIG_PROGRAM(rundll.exe16,install,enable_win16)
 WINE_CONFIG_PROGRAM(rundll32,install)
 WINE_CONFIG_PROGRAM(sc,install)
 WINE_CONFIG_PROGRAM(secedit,install)
+WINE_CONFIG_PROGRAM(servicemodelreg,install)
 WINE_CONFIG_PROGRAM(services,install)
 WINE_CONFIG_PROGRAM(spoolsv,install)
 WINE_CONFIG_PROGRAM(start,install)
diff --git a/programs/servicemodelreg/Makefile.in b/programs/servicemodelreg/Makefile.in
new file mode 100644
index 00000000000..7f902e2ec72
--- /dev/null
+++ b/programs/servicemodelreg/Makefile.in
@@ -0,0 +1,8 @@
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+MODULE    = servicemodelreg.exe
+APPMODE   = -mconsole -municode
+
+C_SRCS = \
+	main.c
+
+@MAKE_PROG_RULES@
diff --git a/programs/servicemodelreg/main.c b/programs/servicemodelreg/main.c
new file mode 100644
index 00000000000..7db760e1cd1
--- /dev/null
+++ b/programs/servicemodelreg/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(servicemodelreg);
+
+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 aad4612d9d8..52e781001ba 100644
--- a/tools/wine.inf.in
+++ b/tools/wine.inf.in
@@ -2604,6 +2604,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
 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\v3.0\windows communication foundation,servicemodelreg.exe
 10,Microsoft.NET\Framework\v4.0.30319,ngen.exe
 10,Microsoft.NET\Framework\v4.0.30319,fusion.dll
 11,wbem,mofcomp.exe
-- 
GitLab