[PATCH 2/2] d3dx9_36: Implement ID3DXFileDataImpl_IsReference.

Christian Costa titan.costa at gmail.com
Tue Jan 22 01:36:28 CST 2013


---
 dlls/d3dx9_36/xfile.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx9_36/xfile.c b/dlls/d3dx9_36/xfile.c
index 82c7495..81f9da3 100644
--- a/dlls/d3dx9_36/xfile.c
+++ b/dlls/d3dx9_36/xfile.c
@@ -235,9 +235,11 @@ static HRESULT WINAPI ID3DXFileDataImpl_GetType(ID3DXFileData *iface, GUID *guid
 
 static BOOL WINAPI ID3DXFileDataImpl_IsReference(ID3DXFileData *iface)
 {
-    TRACE("(%p)->(): stub\n", iface);
+    ID3DXFileDataImpl *This = impl_from_ID3DXFileData(iface);
 
-    return E_NOTIMPL;
+    TRACE("(%p)->()\n", iface);
+
+    return This->reference;
 }
 
 
@@ -320,6 +322,7 @@ static HRESULT ID3DXFileDataImpl_Create(IDirectXFileObject *dxfile_object, ID3DX
                 HeapFree(GetProcessHeap(), 0, object);
                 return E_FAIL;
             }
+            object->reference = TRUE;
         }
         else
         {




More information about the wine-patches mailing list