[PATCH v5 01/11] d3dx10/tests: Add a couple D3DX10CreateAsyncTextureInfoProcessor() parameter tests.

Matteo Bruni wine at gitlab.winehq.org
Fri Jul 1 13:01:02 CDT 2022


From: Matteo Bruni <mbruni at codeweavers.com>

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/d3dx10_43/tests/d3dx10.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dlls/d3dx10_43/tests/d3dx10.c b/dlls/d3dx10_43/tests/d3dx10.c
index 1c28a62b700..b70dbb5b44f 100644
--- a/dlls/d3dx10_43/tests/d3dx10.c
+++ b/dlls/d3dx10_43/tests/d3dx10.c
@@ -1972,6 +1972,22 @@ static void test_D3DX10CreateAsyncTextureInfoProcessor(void)
     hr = D3DX10CreateAsyncTextureInfoProcessor(NULL, NULL);
     ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
 
+    hr = D3DX10CreateAsyncTextureInfoProcessor(&info, NULL);
+    ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
+
+    hr = D3DX10CreateAsyncTextureInfoProcessor(NULL, &dp);
+    ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
+
+    if (0)
+    {
+        /* Crashes on native. */
+        hr = ID3DX10DataProcessor_Process(dp, (void *)test_image[0].data, test_image[0].size);
+        ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
+    }
+
+    hr = ID3DX10DataProcessor_Destroy(dp);
+    ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
+
     hr = D3DX10CreateAsyncTextureInfoProcessor(&info, &dp);
     ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
 
-- 
GitLab


https://gitlab.winehq.org/wine/wine/-/merge_requests/272



More information about the wine-devel mailing list