[PATCH 3/3] d3dx9_36: Implement ID3DXFileDataImpl_GetId.

Christian Costa titan.costa at gmail.com
Fri Jan 11 02:41:06 CST 2013


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

diff --git a/dlls/d3dx9_36/xfile.c b/dlls/d3dx9_36/xfile.c
index fe6b661..42afc6e 100644
--- a/dlls/d3dx9_36/xfile.c
+++ b/dlls/d3dx9_36/xfile.c
@@ -158,9 +158,16 @@ static HRESULT WINAPI ID3DXFileDataImpl_GetName(ID3DXFileData *iface, char *name
 
 static HRESULT WINAPI ID3DXFileDataImpl_GetId(ID3DXFileData *iface, GUID *guid)
 {
-    FIXME("(%p)->(%p): stub\n", iface, guid);
+    ID3DXFileDataImpl *This = impl_from_ID3DXFileData(iface);
+    HRESULT ret;
 
-    return E_NOTIMPL;
+    TRACE("(%p)->(%p)\n", iface, guid);
+
+    ret = IDirectXFileData_GetId(This->dxfile_data, guid);
+    if (ret != DXFILE_OK)
+        return error_dxfile_to_d3dxfile(ret);
+
+    return S_OK;
 }
 
 




More information about the wine-patches mailing list