Matteo Bruni : d3dx10/tests: Add a test for loading an invalid resource from a valid module.
Alexandre Julliard
julliard at winehq.org
Fri Jun 10 16:28:27 CDT 2022
Module: wine
Branch: master
Commit: 35939bbe0c04534da07ece7f6a47a560d356f7a1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=35939bbe0c04534da07ece7f6a47a560d356f7a1
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Thu Jun 9 20:07:55 2022 +0200
d3dx10/tests: Add a test for loading an invalid resource from a valid module.
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)
More information about the wine-cvs
mailing list