[PATCH 2/2] dwrite/tests: Use a better invalid value to make a test pass reliably.
Nikolay Sivov
nsivov at codeweavers.com
Fri Jan 21 01:31:56 CST 2022
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/tests/font.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c
index a610491e09c..af2f3a4104d 100644
--- a/dlls/dwrite/tests/font.c
+++ b/dlls/dwrite/tests/font.c
@@ -4150,8 +4150,8 @@ static void test_GetInformationalStrings(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
exists = TRUE;
- strings = (void*)0xdeadbeef;
- hr = IDWriteFont_GetInformationalStrings(font, DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_CID_NAME+1, &strings, &exists);
+ strings = (void *)0xdeadbeef;
+ hr = IDWriteFont_GetInformationalStrings(font, 0xdead, &strings, &exists);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(exists == FALSE, "got %d\n", exists);
ok(strings == NULL, "got %p\n", strings);
--
2.34.1
More information about the wine-devel
mailing list