[PATCH] where.exe: add stub program (now with bugreport reference)

Louis Lenders xerox.xerox2000x at gmail.com
Wed Jul 1 06:58:01 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49460


Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 configure                  |  2 ++
 configure.ac               |  1 +
 programs/where/Makefile.in |  6 ++++++
 programs/where/main.c      | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 programs/where/Makefile.in
 create mode 100644 programs/where/main.c

diff --git a/configure b/configure
index ee0439425a..b6e42b4c86 100755
--- a/configure
+++ b/configure
@@ -1807,6 +1807,7 @@ enable_uninstaller
 enable_unlodctr
 enable_view
 enable_wevtutil
+enable_where
 enable_whoami
 enable_wineboot
 enable_winebrowser
@@ -21426,6 +21427,7 @@ wine_fn_config_makefile programs/uninstaller enable_uninstaller
 wine_fn_config_makefile programs/unlodctr enable_unlodctr
 wine_fn_config_makefile programs/view enable_view
 wine_fn_config_makefile programs/wevtutil enable_wevtutil
+wine_fn_config_makefile programs/where enable_where
 wine_fn_config_makefile programs/whoami enable_whoami
 wine_fn_config_makefile programs/wineboot enable_wineboot
 wine_fn_config_makefile programs/winebrowser enable_winebrowser
diff --git a/configure.ac b/configure.ac
index 3c03bad292..272f2e2a93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4011,6 +4011,7 @@ WINE_CONFIG_MAKEFILE(programs/uninstaller)
 WINE_CONFIG_MAKEFILE(programs/unlodctr)
 WINE_CONFIG_MAKEFILE(programs/view)
 WINE_CONFIG_MAKEFILE(programs/wevtutil)
+WINE_CONFIG_MAKEFILE(programs/where)
 WINE_CONFIG_MAKEFILE(programs/whoami)
 WINE_CONFIG_MAKEFILE(programs/wineboot)
 WINE_CONFIG_MAKEFILE(programs/winebrowser)
diff --git a/programs/where/Makefile.in b/programs/where/Makefile.in
new file mode 100644
index 0000000000..109261c379
--- /dev/null
+++ b/programs/where/Makefile.in
@@ -0,0 +1,6 @@
+MODULE    = where.exe
+
+EXTRADLLFLAGS = -mconsole -municode -mno-cygwin
+
+C_SRCS = \
+	main.c
diff --git a/programs/where/main.c b/programs/where/main.c
new file mode 100644
index 0000000000..84daac8220
--- /dev/null
+++ b/programs/where/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2020 Louis Lenders
+ *
+ * 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(where);
+
+int __cdecl 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;
+}
-- 
2.27.0




More information about the wine-devel mailing list