mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
d3drm: Pass the correct pointer to IDirectXFileData_GetData (PVS-Studio).
Also remove an uneeded initialization of "size" as that is purely an [OUT] parameter.
This commit is contained in:
parent
dd923c3029
commit
0726542ded
@ -1240,17 +1240,16 @@ static HRESULT load_data(IDirect3DRM3 *iface, IDirectXFileData *data_object, IID
|
||||
/* Cannot be requested */
|
||||
if (parent_frame)
|
||||
{
|
||||
D3DRMMATRIX4D matrix;
|
||||
D3DRMMATRIX4D *matrix;
|
||||
DWORD size;
|
||||
|
||||
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)))
|
||||
goto end;
|
||||
|
||||
hr = IDirect3DRMFrame3_AddTransform(parent_frame, D3DRMCOMBINE_REPLACE, matrix);
|
||||
hr = IDirect3DRMFrame3_AddTransform(parent_frame, D3DRMCOMBINE_REPLACE, *matrix);
|
||||
if (FAILED(hr))
|
||||
goto end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user