d3dxof: Remove IDirectXFileObjectImpl stuff. That's not needed.
This commit is contained in:
parent
76d52393e8
commit
c66a9cd418
|
@ -2317,76 +2317,6 @@ static const IDirectXFileEnumObjectVtbl IDirectXFileEnumObject_Vtbl =
|
|||
IDirectXFileEnumObjectImpl_GetDataObjectByName
|
||||
};
|
||||
|
||||
/*** IUnknown methods ***/
|
||||
static HRESULT WINAPI IDirectXFileObjectImpl_QueryInterface(IDirectXFileObject* iface, REFIID riid, void** ppvObject)
|
||||
{
|
||||
IDirectXFileObjectImpl *This = (IDirectXFileObjectImpl *)iface;
|
||||
|
||||
TRACE("(%p/%p)->(%s,%p)\n", iface, This, debugstr_guid(riid), ppvObject);
|
||||
|
||||
if (IsEqualGUID(riid, &IID_IUnknown)
|
||||
|| IsEqualGUID(riid, &IID_IDirectXFileObject))
|
||||
{
|
||||
IClassFactory_AddRef(iface);
|
||||
*ppvObject = This;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
ERR("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppvObject);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
static ULONG WINAPI IDirectXFileObjectImpl_AddRef(IDirectXFileObject* iface)
|
||||
{
|
||||
IDirectXFileObjectImpl *This = (IDirectXFileObjectImpl *)iface;
|
||||
ULONG ref = InterlockedIncrement(&This->ref);
|
||||
|
||||
TRACE("(%p/%p): AddRef from %d\n", iface, This, ref - 1);
|
||||
|
||||
return ref;
|
||||
}
|
||||
|
||||
static ULONG WINAPI IDirectXFileObjectImpl_Release(IDirectXFileObject* iface)
|
||||
{
|
||||
IDirectXFileObjectImpl *This = (IDirectXFileObjectImpl *)iface;
|
||||
ULONG ref = InterlockedDecrement(&This->ref);
|
||||
|
||||
TRACE("(%p/%p): ReleaseRef to %d\n", iface, This, ref);
|
||||
|
||||
if (!ref)
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
|
||||
return ref;
|
||||
}
|
||||
|
||||
/*** IDirectXFileObject methods ***/
|
||||
static HRESULT WINAPI IDirectXFileObjectImpl_GetName(IDirectXFileObject* iface, LPSTR pstrNameBuf, LPDWORD pdwBufLen)
|
||||
{
|
||||
IDirectXFileDataReferenceImpl *This = (IDirectXFileDataReferenceImpl *)iface;
|
||||
|
||||
FIXME("(%p/%p)->(%p,%p) stub!\n", This, iface, pstrNameBuf, pdwBufLen);
|
||||
|
||||
return DXFILEERR_BADVALUE;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IDirectXFileObjectImpl_GetId(IDirectXFileObject* iface, LPGUID pGuid)
|
||||
{
|
||||
IDirectXFileObjectImpl *This = (IDirectXFileObjectImpl *)iface;
|
||||
|
||||
FIXME("(%p/%p)->(%p) stub!\n", This, iface, pGuid);
|
||||
|
||||
return DXFILEERR_BADVALUE;
|
||||
}
|
||||
|
||||
static const IDirectXFileObjectVtbl IDirectXFileObject_Vtbl =
|
||||
{
|
||||
IDirectXFileObjectImpl_QueryInterface,
|
||||
IDirectXFileObjectImpl_AddRef,
|
||||
IDirectXFileObjectImpl_Release,
|
||||
IDirectXFileObjectImpl_GetName,
|
||||
IDirectXFileObjectImpl_GetId
|
||||
};
|
||||
|
||||
static HRESULT IDirectXFileSaveObjectImpl_Create(IDirectXFileSaveObjectImpl** ppObj)
|
||||
{
|
||||
IDirectXFileSaveObjectImpl* object;
|
||||
|
|
Loading…
Reference in New Issue