Commit f8d90893 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dx9_36: Implement ID3DXFileDataImpl_GetName.

parent 4ba27f79
......@@ -137,9 +137,24 @@ static HRESULT WINAPI ID3DXFileDataImpl_GetEnum(ID3DXFileData *iface, ID3DXFileE
static HRESULT WINAPI ID3DXFileDataImpl_GetName(ID3DXFileData *iface, char *name, SIZE_T *size)
{
FIXME("(%p)->(%p, %p): stub\n", iface, name, size);
ID3DXFileDataImpl *This = impl_from_ID3DXFileData(iface);
DWORD dxfile_size;
HRESULT ret;
return E_NOTIMPL;
TRACE("(%p)->(%p, %p)\n", iface, name, size);
if (!name || !size)
return E_POINTER;
dxfile_size = *size;
ret = IDirectXFileData_GetName(This->dxfile_data, name, &dxfile_size);
if (ret != DXFILE_OK)
return error_dxfile_to_d3dxfile(ret);
*size = dxfile_size;
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment