[PATCH] dwrite: use correct variable (Coverity)

Marcus Meissner marcus at jet.franken.de
Sun Sep 21 10:00:16 CDT 2014


1232720 Mixing enum types

these are actually different values. Also use the correct
one.
---
 dlls/dwrite/tests/font.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c
index 3a17064..945bfbf 100644
--- a/dlls/dwrite/tests/font.c
+++ b/dlls/dwrite/tests/font.c
@@ -957,7 +957,7 @@ static void test_FontLoader(void)
     ok(face == DWRITE_FONT_FACE_TYPE_UNKNOWN, "got %i\n", face);
     ok(count == 0, "got %i\n", count);
 
-    hr = IDWriteFactory_CreateFontFace(factory, type, 1, &ffile, 0, 0, &fface);
+    hr = IDWriteFactory_CreateFontFace(factory, DWRITE_FONT_FACE_TYPE_CFF, 1, &ffile, 0, 0, &fface);
     ok(hr == 0x8faecafe, "got 0x%08x\n", hr);
     IDWriteFontFile_Release(ffile);
 
-- 
1.8.4.5




More information about the wine-patches mailing list