Nikolay Sivov : dwrite/tests: Use a better invalid value to make a test pass reliably.
Alexandre Julliard
julliard at winehq.org
Fri Jan 21 15:54:48 CST 2022
Module: wine
Branch: master
Commit: 47f5a50260e5e9221c063fc61c5f194d0d2d9a9e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=47f5a50260e5e9221c063fc61c5f194d0d2d9a9e
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Jan 21 15:57:17 2022 +0300
dwrite/tests: Use a better invalid value to make a test pass reliably.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
More information about the wine-cvs
mailing list