Commit 910ec21b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat: Add a warning for buffer method failure (Coverity).

parent cb3517a1
......@@ -1211,7 +1211,8 @@ static HRESULT sample_copy_to_buffer(struct sample *sample, IMFMediaBuffer *buff
}
}
IMFMediaBuffer_SetCurrentLength(buffer, dst_current_length);
if (FAILED(IMFMediaBuffer_SetCurrentLength(buffer, dst_current_length)))
WARN("Failed to set buffer length.\n");
if (locked)
IMFMediaBuffer_Unlock(buffer);
......
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