mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
135 lines
4.4 KiB
Diff
135 lines
4.4 KiB
Diff
|
From 523924d5353b9616dabb3ba0614f0b60d6e7012a Mon Sep 17 00:00:00 2001
|
||
|
From: Austin English <austinenglish@gmail.com>
|
||
|
Date: Tue, 13 Oct 2020 04:42:24 -0500
|
||
|
Subject: [PATCH] qedwipes: add stub dll
|
||
|
|
||
|
Signed-off-by: Austin English <austinenglish@gmail.com>
|
||
|
---
|
||
|
configure.ac | 1 +
|
||
|
dlls/qedwipes/Makefile.in | 8 +++++++
|
||
|
dlls/qedwipes/qedwipes.spec | 1 +
|
||
|
dlls/qedwipes/qedwipes_main.c | 42 +++++++++++++++++++++++++++++++++++
|
||
|
dlls/qedwipes/version.rc | 26 ++++++++++++++++++++++
|
||
|
5 files changed, 78 insertions(+)
|
||
|
create mode 100644 dlls/qedwipes/Makefile.in
|
||
|
create mode 100644 dlls/qedwipes/qedwipes.spec
|
||
|
create mode 100644 dlls/qedwipes/qedwipes_main.c
|
||
|
create mode 100644 dlls/qedwipes/version.rc
|
||
|
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 2bb8c05cbcb..9b9c9bcec7d 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -3609,6 +3609,7 @@ WINE_CONFIG_MAKEFILE(dlls/qdvd)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/qdvd/tests)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/qedit)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/qedit/tests)
|
||
|
+WINE_CONFIG_MAKEFILE(dlls/qedwipes)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/qmgr)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/qmgr/tests)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/qmgrprxy)
|
||
|
diff --git a/dlls/qedwipes/Makefile.in b/dlls/qedwipes/Makefile.in
|
||
|
new file mode 100644
|
||
|
index 00000000000..eff4ffbc813
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/qedwipes/Makefile.in
|
||
|
@@ -0,0 +1,8 @@
|
||
|
+MODULE = qedwipes.dll
|
||
|
+
|
||
|
+EXTRADLLFLAGS = -mno-cygwin
|
||
|
+
|
||
|
+C_SRCS = \
|
||
|
+ qedwipes_main.c
|
||
|
+
|
||
|
+RC_SRCS = version.rc
|
||
|
diff --git a/dlls/qedwipes/qedwipes.spec b/dlls/qedwipes/qedwipes.spec
|
||
|
new file mode 100644
|
||
|
index 00000000000..3a8a8ea0098
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/qedwipes/qedwipes.spec
|
||
|
@@ -0,0 +1 @@
|
||
|
+# FIXME: native doesn't export any functions?
|
||
|
diff --git a/dlls/qedwipes/qedwipes_main.c b/dlls/qedwipes/qedwipes_main.c
|
||
|
new file mode 100644
|
||
|
index 00000000000..5085213e24f
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/qedwipes/qedwipes_main.c
|
||
|
@@ -0,0 +1,42 @@
|
||
|
+/*
|
||
|
+ *
|
||
|
+ * Copyright 2020 Austin English
|
||
|
+ *
|
||
|
+ * 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(qedwipes);
|
||
|
+
|
||
|
+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/qedwipes/version.rc b/dlls/qedwipes/version.rc
|
||
|
new file mode 100644
|
||
|
index 00000000000..ce865c2b96f
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/qedwipes/version.rc
|
||
|
@@ -0,0 +1,26 @@
|
||
|
+/*
|
||
|
+ * Copyright 2020 Austin English
|
||
|
+ *
|
||
|
+ * 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
|
||
|
+ */
|
||
|
+
|
||
|
+#define WINE_FILEDESCRIPTION_STR "Wine qedwipes"
|
||
|
+#define WINE_FILENAME_STR "qedwipes.dll"
|
||
|
+#define WINE_FILEVERSION 5,3,2600,5512
|
||
|
+#define WINE_FILEVERSION_STR "5.3.2600.5512"
|
||
|
+#define WINE_PRODUCTVERSION 5,3,2600,5512
|
||
|
+#define WINE_PRODUCTVERSION_STR "5.3.2600.5512"
|
||
|
+
|
||
|
+#include "wine/wine_common_ver.rc"
|
||
|
--
|
||
|
2.29.2
|
||
|
|