mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
139 lines
4.4 KiB
Diff
139 lines
4.4 KiB
Diff
From 317a6a2e7a0bae37645cb6da6c76f6c8c428da3e Mon Sep 17 00:00:00 2001
|
|
From: Austin English <austinenglish@gmail.com>
|
|
Date: Tue, 13 Oct 2020 04:42:04 -0500
|
|
Subject: [PATCH] encapi: add stub dll
|
|
|
|
Signed-off-by: Austin English <austinenglish@gmail.com>
|
|
---
|
|
configure.ac | 1 +
|
|
dlls/encapi/Makefile.in | 8 ++++++++
|
|
dlls/encapi/encapi.spec | 4 ++++
|
|
dlls/encapi/encapi_main.c | 42 +++++++++++++++++++++++++++++++++++++++
|
|
dlls/encapi/version.rc | 26 ++++++++++++++++++++++++
|
|
5 files changed, 81 insertions(+)
|
|
create mode 100644 dlls/encapi/Makefile.in
|
|
create mode 100644 dlls/encapi/encapi.spec
|
|
create mode 100644 dlls/encapi/encapi_main.c
|
|
create mode 100644 dlls/encapi/version.rc
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 32683ac8d61..5ca4d461a29 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -3238,6 +3238,7 @@ WINE_CONFIG_MAKEFILE(dlls/dxgi/tests)
|
|
WINE_CONFIG_MAKEFILE(dlls/dxguid)
|
|
WINE_CONFIG_MAKEFILE(dlls/dxva2)
|
|
WINE_CONFIG_MAKEFILE(dlls/dxva2/tests)
|
|
+WINE_CONFIG_MAKEFILE(dlls/encapi)
|
|
WINE_CONFIG_MAKEFILE(dlls/esent)
|
|
WINE_CONFIG_MAKEFILE(dlls/evr)
|
|
WINE_CONFIG_MAKEFILE(dlls/evr/tests)
|
|
diff --git a/dlls/encapi/Makefile.in b/dlls/encapi/Makefile.in
|
|
new file mode 100644
|
|
index 00000000000..3f305c76e04
|
|
--- /dev/null
|
|
+++ b/dlls/encapi/Makefile.in
|
|
@@ -0,0 +1,8 @@
|
|
+MODULE = encapi.dll
|
|
+
|
|
+EXTRADLLFLAGS = -mno-cygwin
|
|
+
|
|
+C_SRCS = \
|
|
+ encapi_main.c
|
|
+
|
|
+RC_SRCS = version.rc
|
|
diff --git a/dlls/encapi/encapi.spec b/dlls/encapi/encapi.spec
|
|
new file mode 100644
|
|
index 00000000000..a043605127d
|
|
--- /dev/null
|
|
+++ b/dlls/encapi/encapi.spec
|
|
@@ -0,0 +1,4 @@
|
|
+@ stub DllCanUnloadNow
|
|
+@ stub DllGetClassObject
|
|
+@ stub DllRegisterServer
|
|
+@ stub DllUnregisterServer
|
|
\ No newline at end of file
|
|
diff --git a/dlls/encapi/encapi_main.c b/dlls/encapi/encapi_main.c
|
|
new file mode 100644
|
|
index 00000000000..ac16fb3c8e9
|
|
--- /dev/null
|
|
+++ b/dlls/encapi/encapi_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(encapi);
|
|
+
|
|
+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/encapi/version.rc b/dlls/encapi/version.rc
|
|
new file mode 100644
|
|
index 00000000000..8f10a2c6ce6
|
|
--- /dev/null
|
|
+++ b/dlls/encapi/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 encapi"
|
|
+#define WINE_FILENAME_STR "encapi.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
|
|
|