[PATCH v2 4/6] mfplat: Properly align memory allocated by IMF2DBuffer.

Nikolay Sivov nsivov at codeweavers.com
Sun Feb 27 08:22:58 CST 2022



On 2/25/22 19:37, Giovanni Mascellani wrote:
> diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
> index e216c0304a9..137ade76b05 100644
> --- a/dlls/mfplat/tests/mfplat.c
> +++ b/dlls/mfplat/tests/mfplat.c
> @@ -5793,7 +5793,6 @@ static void test_MFCreate2DMediaBuffer(void)
>       hr = IMF2DBuffer_Lock2D(_2dbuffer, &data, &pitch);
>       ok(hr == S_OK, "Failed to lock buffer, hr %#x.\n", hr);
>       ok(!!data, "Expected data pointer.\n");
> -    todo_wine
>       ok(((uintptr_t)data & MF_64_BYTE_ALIGNMENT) == 0, "Data at %p is insufficiently aligned.\n", data);
>       ok(pitch == 64, "Unexpected pitch %d.\n", pitch);
>   
> @@ -5907,7 +5906,6 @@ static void test_MFCreate2DMediaBuffer(void)
>                   length2, ptr->width, ptr->height, wine_dbgstr_an((char *)&ptr->fourcc, 4));
>   
>           hr = IMF2DBuffer_Lock2D(_2dbuffer, &data, &pitch);
> -        todo_wine
>           ok(((uintptr_t)data & MF_64_BYTE_ALIGNMENT) == 0, "Data at %p is insufficiently aligned.\n", data);
>           ok(hr == S_OK, "Failed to lock buffer, hr %#x.\n", hr);
>   
For this another example would be useful, to see if alignment is not 
unconditionally 64.



More information about the wine-devel mailing list