[PATCH 4/5] d3dx11_42: Share the source code with d3dx11_43.

Matteo Bruni mbruni at codeweavers.com
Tue Jun 14 15:57:25 CDT 2016


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/d3dx11_42/Makefile.in    | 5 ++++-
 dlls/d3dx11_42/d3dx11_42.c    | 2 +-
 dlls/d3dx11_42/d3dx11_42.spec | 2 +-
 tools/make_specfiles          | 4 ----
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/dlls/d3dx11_42/Makefile.in b/dlls/d3dx11_42/Makefile.in
index 3b6ab39..cb133b2 100644
--- a/dlls/d3dx11_42/Makefile.in
+++ b/dlls/d3dx11_42/Makefile.in
@@ -1,5 +1,8 @@
 MODULE = d3dx11_42.dll
+IMPORTS = d3dcompiler
+PARENTSRC = ../d3dx11_43
 
-C_SRCS = d3dx11_42.c
+C_SRCS = async.c \
+	d3dx11_42.c
 
 RC_SRCS = version.rc
diff --git a/dlls/d3dx11_42/d3dx11_42.c b/dlls/d3dx11_42/d3dx11_42.c
index ac56fbe..823ebf4 100644
--- a/dlls/d3dx11_42/d3dx11_42.c
+++ b/dlls/d3dx11_42/d3dx11_42.c
@@ -26,7 +26,7 @@
 #include "winbase.h"
 #include "winuser.h"
 #include "objbase.h"
-#include "d3d11.h"
+#include "d3dx11.h"
 
 BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
 {
diff --git a/dlls/d3dx11_42/d3dx11_42.spec b/dlls/d3dx11_42/d3dx11_42.spec
index b917263..a2a32ff 100644
--- a/dlls/d3dx11_42/d3dx11_42.spec
+++ b/dlls/d3dx11_42/d3dx11_42.spec
@@ -1,7 +1,7 @@
 @ stdcall D3DX11CheckVersion(long long)
 @ stub D3DX11CompileFromFileA
 @ stub D3DX11CompileFromFileW
-@ stdcall D3DX11CompileFromMemory(str long str ptr ptr str str long long ptr ptr ptr ptr) d3dx11_43.D3DX11CompileFromMemory
+@ stdcall D3DX11CompileFromMemory(str long str ptr ptr str str long long ptr ptr ptr ptr)
 @ stub D3DX11CompileFromResourceA
 @ stub D3DX11CompileFromResourceW
 @ stub D3DX11ComputeNormalMap
diff --git a/tools/make_specfiles b/tools/make_specfiles
index feb65b4..448d813 100755
--- a/tools/make_specfiles
+++ b/tools/make_specfiles
@@ -108,10 +108,6 @@ my @dll_groups =
   "d3dx10_33",
  ],
  [
-  "d3dx11_43",
-  "d3dx11_42",
- ],
- [
   "d3dcompiler_43",
   "d3dcompiler_47",
   "d3dcompiler_46",
-- 
2.7.3




More information about the wine-patches mailing list