https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4e6848d18a01313ed3334…
commit 4e6848d18a01313ed333478ad690e81fcce7096b
Author:     winesync <ros-dev(a)reactos.org>
AuthorDate: Sat Feb 1 18:02:25 2020 +0100
Commit:     Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Wed Feb 26 18:19:18 2020 +0100
    [WINESYNC] d3dx9_36: Improve stub for ID3DXEffectImpl_CloneEffect.
    wine-staging patch by Sebastian Lackner <sebastian(a)fds-team.de>
---
 dll/directx/wine/d3dx9_36/effect.c                        |  4 +++-
 ..._36__Improve_stub_for_ID3DXEffectImpl_CloneEffect.diff | 15 +++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/dll/directx/wine/d3dx9_36/effect.c b/dll/directx/wine/d3dx9_36/effect.c
index e8ae7b54c22..3538b1578d1 100644
--- a/dll/directx/wine/d3dx9_36/effect.c
+++ b/dll/directx/wine/d3dx9_36/effect.c
@@ -4555,7 +4555,9 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect
*iface,
     if (!device)
         return D3DERR_INVALIDCALL;
-    return E_NOTIMPL;
+    iface->lpVtbl->AddRef(iface);
+    *effect = iface;
+    return S_OK;
 }
 #if D3DX_SDK_VERSION >= 27
diff --git
a/sdk/tools/winesync/d3dx9_staging/0004-d3dx9_36__Improve_stub_for_ID3DXEffectImpl_CloneEffect.diff
b/sdk/tools/winesync/d3dx9_staging/0004-d3dx9_36__Improve_stub_for_ID3DXEffectImpl_CloneEffect.diff
new file mode 100644
index 00000000000..7277ee9c053
--- /dev/null
+++
b/sdk/tools/winesync/d3dx9_staging/0004-d3dx9_36__Improve_stub_for_ID3DXEffectImpl_CloneEffect.diff
@@ -0,0 +1,15 @@
+diff --git a/dll/directx/wine/d3dx9_36/effect.c b/dll/directx/wine/d3dx9_36/effect.c
+index e8ae7b5..3538b15 100644
+--- a/dll/directx/wine/d3dx9_36/effect.c
++++ b/dll/directx/wine/d3dx9_36/effect.c
+@@ -4555,7 +4555,9 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect
*iface,
+     if (!device)
+         return D3DERR_INVALIDCALL;
+
+-    return E_NOTIMPL;
++    iface->lpVtbl->AddRef(iface);
++    *effect = iface;
++    return S_OK;
+ }
+
+ #if D3DX_SDK_VERSION >= 27