[PATCH 4/5] mfplat/tests: Test passing NULL arguments.
Giovanni Mascellani
gmascellani at codeweavers.com
Fri May 7 03:56:27 CDT 2021
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
---
dlls/mfplat/tests/mfplat.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
index 7201b6d3e4a..06560e3a529 100644
--- a/dlls/mfplat/tests/mfplat.c
+++ b/dlls/mfplat/tests/mfplat.c
@@ -794,6 +794,18 @@ todo_wine {
ok(!thinning, "Unexpected thinning.\n", thinning);
ok(rate == 1.0f, "Unexpected rate %f.\n", rate);
+ hr = IMFRateControl_GetRate(rate_control, NULL, &rate);
+ ok(hr == S_OK, "Failed to get current rate, hr %#x.\n", hr);
+ ok(rate == 1.0f, "Unexpected rate %f.\n", rate);
+
+ thinning = TRUE;
+ hr = IMFRateControl_GetRate(rate_control, &thinning, NULL);
+ ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
+ ok(thinning, "Failed call touched thinning.\n", thinning);
+
+ hr = IMFRateControl_GetRate(rate_control, NULL, NULL);
+ ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
+
/* 1e6f + 0.06f == 1.0f + 1 ulp */
hr = IMFRateControl_SetRate(rate_control, FALSE, 1e6f + 0.06f);
ok(hr == MF_E_UNSUPPORTED_RATE, "Unexpected hr %#x.\n", hr);
--
2.31.1
More information about the wine-devel
mailing list