[PATCH v4 9/9] d3dx10/tests: Add a test for loading an invalid resource from a valid module.
Matteo Bruni
wine at gitlab.winehq.org
Fri Jun 10 12:52:46 CDT 2022
From: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/d3dx10_43/tests/d3dx10.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/d3dx10_43/tests/d3dx10.c b/dlls/d3dx10_43/tests/d3dx10.c
index 0a297188e19..0c6c4e5c8ce 100644
--- a/dlls/d3dx10_43/tests/d3dx10.c
+++ b/dlls/d3dx10_43/tests/d3dx10.c
@@ -2120,6 +2120,11 @@ static void test_get_image_info(void)
winetest_push_context("Test %u", i);
resource_module = create_resource_module(test_resource_name, test_image[i].data, test_image[i].size);
+ hr2 = 0xdeadbeef;
+ hr = D3DX10GetImageInfoFromResourceW(resource_module, L"deadbeef", NULL, &image_info, &hr2);
+ ok(hr == D3DX10_ERR_INVALID_DATA, "Got unexpected hr %#x.\n", hr);
+ ok(hr2 == 0xdeadbeef, "Got unexpected hr2 %#x.\n", hr2);
+
hr2 = 0xdeadbeef;
hr = D3DX10GetImageInfoFromResourceW(resource_module, test_resource_name, NULL, &image_info, &hr2);
ok(hr == S_OK || broken(hr == E_FAIL && test_image[i].expected_info.ImageFileFormat == D3DX10_IFF_WMP)
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/205
More information about the wine-devel
mailing list