Commit 0726542d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3drm: Pass the correct pointer to IDirectXFileData_GetData (PVS-Studio).

Also remove an uneeded initialization of "size" as that is purely an [OUT] parameter.
parent dd923c30
...@@ -1240,17 +1240,16 @@ static HRESULT load_data(IDirect3DRM3 *iface, IDirectXFileData *data_object, IID ...@@ -1240,17 +1240,16 @@ static HRESULT load_data(IDirect3DRM3 *iface, IDirectXFileData *data_object, IID
/* Cannot be requested */ /* Cannot be requested */
if (parent_frame) if (parent_frame)
{ {
D3DRMMATRIX4D matrix; D3DRMMATRIX4D *matrix;
DWORD size; DWORD size;
TRACE("Load Frame Transform Matrix data\n"); TRACE("Load Frame Transform Matrix data\n");
size = sizeof(matrix); hr = IDirectXFileData_GetData(data_object, NULL, &size, (void**)&matrix);
hr = IDirectXFileData_GetData(data_object, NULL, &size, (void**)matrix);
if ((hr != DXFILE_OK) || (size != sizeof(matrix))) if ((hr != DXFILE_OK) || (size != sizeof(matrix)))
goto end; goto end;
hr = IDirect3DRMFrame3_AddTransform(parent_frame, D3DRMCOMBINE_REPLACE, matrix); hr = IDirect3DRMFrame3_AddTransform(parent_frame, D3DRMCOMBINE_REPLACE, *matrix);
if (FAILED(hr)) if (FAILED(hr))
goto end; goto end;
} }
......
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