[PATCH v2 4/4] mfplat: Implement MFCreateMemoryBuffer

Nikolay Sivov nsivov at codeweavers.com
Thu Sep 6 23:00:24 CDT 2018


On 09/07/2018 03:58 AM, Alistair Leslie-Hughes wrote:

> +static HRESULT WINAPI mfbuffer_Lock(IMFMediaBuffer *iface, BYTE **buffer, DWORD *max, DWORD *current)
> +{
> +    mfbuffer *This = impl_from_IMFMediaBuffer(iface);
> +
> +    TRACE("%p, %p %p, %p\n", This, buffer, max, current);
> +
> +    if(!buffer)
> +        return E_INVALIDARG;
> +
> +    *buffer = This->buffer;
> +    if(max)
> +        *max = This->max_length;
> +    if(current)
> +        *current = This->current;
> +
> +    return S_OK;
> +}
This doesn't lock anything. How did you test this?



More information about the wine-devel mailing list