quartz/tests: Avoid Sleep().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2017-11-04 00:20:15 -05:00 committed by Alexandre Julliard
parent 64c6761761
commit 7074b411df

View file

@ -330,8 +330,7 @@ static void rungraph(void)
hr = IMediaEvent_GetEventHandle(pme, (OAEVENT*)&hEvent);
ok(hr==S_OK, "Cannot get event handle returned: %x\n", hr);
/* WaitForSingleObject(hEvent, INFINITE); */
Sleep(20000);
ok(WaitForSingleObject(hEvent, 2000) == WAIT_OBJECT_0, "Wait failed\n");
hr = IMediaEvent_Release(pme);
ok(hr==2, "Releasing mediaevent returned: %x\n", hr);