d3drm: Get data from the right objects (sub-objects).

This commit is contained in:
Christian Costa 2012-03-14 09:06:51 +01:00 committed by Alexandre Julliard
parent 0233344799
commit 5b1cc4682b
1 changed files with 2 additions and 2 deletions

View File

@ -1167,7 +1167,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_Load(IDirect3DRMMeshBuilder3*
{
DWORD tmp;
hr = IDirectXFileData_GetData(pData, NULL, &size, (void**)&ptr);
hr = IDirectXFileData_GetData(pData2, NULL, &size, (void**)&ptr);
if (hr != DXFILE_OK)
goto end;
@ -1181,7 +1181,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_Load(IDirect3DRMMeshBuilder3*
}
else if (IsEqualGUID(pGuid, &TID_D3DRMMeshTextureCoords))
{
hr = IDirectXFileData_GetData(pData, NULL, &size, (void**)&ptr);
hr = IDirectXFileData_GetData(pData2, NULL, &size, (void**)&ptr);
if (hr != DXFILE_OK)
goto end;