wmp/tests: Don't use round to avoid dependency on mingwex.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-01-08 23:22:18 +01:00 committed by Alexandre Julliard
parent 2100353861
commit 44bc06ba95
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ static BOOL test_wmp(void)
ok(hres == S_OK, "IWMPPlayer4_get_currentMedia failed: %08x\n", hres); ok(hres == S_OK, "IWMPPlayer4_get_currentMedia failed: %08x\n", hres);
hres = IWMPMedia_get_duration(media, &duration); hres = IWMPMedia_get_duration(media, &duration);
ok(hres == S_OK, "IWMPMedia_get_duration failed: %08x\n", hres); ok(hres == S_OK, "IWMPMedia_get_duration failed: %08x\n", hres);
ok(round(duration) == 3, "unexpected value: %f\n", duration); ok(floor(duration + 0.5) == 3, "unexpected value: %f\n", duration);
IWMPMedia_Release(media); IWMPMedia_Release(media);
network = NULL; network = NULL;