Fix for metafile test
Jakob Eriksson
jakov at vmlinux.org
Tue Nov 2 09:08:54 CST 2004
Seems the test fails in non-interactive mode without this patch.
Index: dlls/gdi/tests/metafile.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/tests/metafile.c,v
retrieving revision 1.1
diff -u -r1.1 metafile.c
--- dlls/gdi/tests/metafile.c 9 Mar 2004 19:19:53 -0000 1.1
+++ dlls/gdi/tests/metafile.c 2 Nov 2004 15:00:39 -0000
@@ -40,7 +40,12 @@
trace("hdc %p, emr->iType %ld, emr->nSize %ld, param %p\n",
hdc, emr->iType, emr->nSize, (void *)param);
- PlayEnhMetaFileRecord(hdc, handle_table, emr, n_objs);
+ if (0 == PlayEnhMetaFileRecord(hdc, handle_table, emr, n_objs))
+ {
+ trace("Could not PlayEnhMetaFileRecord(%p, %p, %p, %d);\n",
+ hdc, handle_table, emr, n_objs);
+ return 0;
+ }
switch (emr->iType)
{
More information about the wine-patches
mailing list