amstream/tests: Use SetRectEmpty() instead of memset().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dc0a49f3bb
commit
0e0cc67c5a
|
@ -572,7 +572,7 @@ static void test_IDirectDrawStreamSample(void)
|
||||||
EXPECT_REF(surface, 2);
|
EXPECT_REF(surface, 2);
|
||||||
|
|
||||||
surface2 = NULL;
|
surface2 = NULL;
|
||||||
memset(&rect, 0, sizeof(rect));
|
SetRectEmpty(&rect);
|
||||||
hr = IDirectDrawStreamSample_GetSurface(pddsample, &surface2, &rect);
|
hr = IDirectDrawStreamSample_GetSurface(pddsample, &surface2, &rect);
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
ok(surface == surface2, "got %p\n", surface2);
|
ok(surface == surface2, "got %p\n", surface2);
|
||||||
|
|
Loading…
Reference in New Issue