d3dxof: Create FileEnumObject using its constructor.
This commit is contained in:
parent
2bc401ef89
commit
1b1f8aa891
|
@ -159,7 +159,8 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
|
||||||
|
|
||||||
{
|
{
|
||||||
IDirectXFileImpl *This = (IDirectXFileImpl *)iface;
|
IDirectXFileImpl *This = (IDirectXFileImpl *)iface;
|
||||||
IDirectXFileEnumObjectImpl* object;
|
IDirectXFileEnumObjectImpl* object;
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
FIXME("(%p/%p)->(%p,%x,%p) stub!\n", This, iface, pvSource, dwLoadOptions, ppEnumObj);
|
FIXME("(%p/%p)->(%p,%x,%p) stub!\n", This, iface, pvSource, dwLoadOptions, ppEnumObj);
|
||||||
|
|
||||||
|
@ -180,13 +181,12 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV
|
||||||
FIXME("Source type %d is not handled yet\n", dwLoadOptions);
|
FIXME("Source type %d is not handled yet\n", dwLoadOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectXFileEnumObjectImpl));
|
hr = IDirectXFileEnumObjectImpl_Create(&object);
|
||||||
|
if (!SUCCEEDED(hr))
|
||||||
object->lpVtbl.lpVtbl = &IDirectXFileEnumObject_Vtbl;
|
return hr;
|
||||||
object->ref = 1;
|
|
||||||
|
|
||||||
*ppEnumObj = (LPDIRECTXFILEENUMOBJECT)object;
|
*ppEnumObj = (LPDIRECTXFILEENUMOBJECT)object;
|
||||||
|
|
||||||
return DXFILE_OK;
|
return DXFILE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue