[PATCH 2/4] d2d1/tests: Add initial tests for d2d effect.
Henri Verbeet
hverbeet at gmail.com
Wed Jul 7 10:59:50 CDT 2021
On Wed, 7 Jul 2021 at 06:50, Ziqing Hui <zhui at codeweavers.com> wrote:
> diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
> index e60128b38f2..25e837be40b 100644
> --- a/dlls/d2d1/tests/d2d1.c
> +++ b/dlls/d2d1/tests/d2d1.c
> @@ -25,6 +25,7 @@
> #include "wincrypt.h"
> #include "wine/test.h"
> #include "initguid.h"
> +#include "d2d1effects.h"
> #include "dwrite.h"
> #include "wincodec.h"
> #include "wine/heap.h"
d2d1effects.h should already be included by d2d1.h.
> + hr = ID2D1RenderTarget_QueryInterface(ctx.rt, &IID_ID2D1DeviceContext, (void **)&context);
> + ok(hr == S_OK, "Failed to get device context interface, hr %#x.\n", hr);
> + if (hr != S_OK)
> + goto end;
If "hr != S_OK", the test would fail, so there's no need to handle that.
More information about the wine-devel
mailing list