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

Alexandre Julliard julliard at winehq.org
Thu Jan 9 16:34:28 CST 2020


Module: wine
Branch: master
Commit: 44bc06ba95254ea574b56693a01d731977814279
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=44bc06ba95254ea574b56693a01d731977814279

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Jan  8 23:22:18 2020 +0100

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

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wmp/tests/media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wmp/tests/media.c b/dlls/wmp/tests/media.c
index 9857a7e7ae..65038364ed 100644
--- a/dlls/wmp/tests/media.c
+++ b/dlls/wmp/tests/media.c
@@ -419,7 +419,7 @@ static BOOL test_wmp(void)
     ok(hres == S_OK, "IWMPPlayer4_get_currentMedia failed: %08x\n", hres);
     hres = IWMPMedia_get_duration(media, &duration);
     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);
 
     network = NULL;




More information about the wine-cvs mailing list