Vincent Povirk : gdiplus: Remove is_emfplus field from test structure, as it's redundant.

Alexandre Julliard julliard at winehq.org
Mon May 23 13:24:56 CDT 2011


Module: wine
Branch: master
Commit: 06b23138e233957b69d31e7d34bc9c06784cff77
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=06b23138e233957b69d31e7d34bc9c06784cff77

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Sat May 21 18:36:22 2011 -0500

gdiplus: Remove is_emfplus field from test structure, as it's redundant.

---

 dlls/gdiplus/tests/metafile.c |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/dlls/gdiplus/tests/metafile.c b/dlls/gdiplus/tests/metafile.c
index 8b13c20..ff9c346 100644
--- a/dlls/gdiplus/tests/metafile.c
+++ b/dlls/gdiplus/tests/metafile.c
@@ -29,7 +29,6 @@ typedef struct emfplus_record
 {
     ULONG todo;
     ULONG record_type;
-    int is_emfplus;
 } emfplus_record;
 
 typedef struct emfplus_check_state
@@ -44,10 +43,6 @@ static void check_record(int count, const char *desc, const struct emfplus_recor
     ok(expected->record_type == actual->record_type,
         "%s.%i: Expected record type 0x%x, got 0x%x\n", desc, count,
         expected->record_type, actual->record_type);
-
-    ok(expected->is_emfplus == actual->is_emfplus,
-        "%s.%i: Expected is_emfplus %i, got %i\n", desc, count,
-        expected->record_type, actual->record_type);
 }
 
 typedef struct EmfPlusRecordHeader
@@ -89,7 +84,6 @@ static int CALLBACK enum_emf_proc(HDC hDC, HANDLETABLE *lpHTable, const ENHMETAR
                 {
                     actual.todo = 0;
                     actual.record_type = record->Type;
-                    actual.is_emfplus = 1;
 
                     check_record(state->count, state->desc, &state->expected[state->count], &actual);
 
@@ -113,7 +107,6 @@ static int CALLBACK enum_emf_proc(HDC hDC, HANDLETABLE *lpHTable, const ENHMETAR
     {
         actual.todo = 0;
         actual.record_type = lpEMFR->iType;
-        actual.is_emfplus = 0;
 
         check_record(state->count, state->desc, &state->expected[state->count], &actual);
 
@@ -148,7 +141,6 @@ static BOOL CALLBACK enum_metafile_proc(EmfPlusRecordType record_type, unsigned
 
     actual.todo = 0;
     actual.record_type = record_type;
-    actual.is_emfplus = ((record_type & GDIP_EMFPLUS_RECORD_BASE) == GDIP_EMFPLUS_RECORD_BASE);
 
     if (dataSize == 0)
         ok(pStr == NULL, "non-NULL pStr\n");
@@ -196,10 +188,10 @@ static void check_metafile(GpMetafile *metafile, const emfplus_record *expected,
 }
 
 static const emfplus_record empty_records[] = {
-    {0, EMR_HEADER, 0},
-    {0, EmfPlusRecordTypeHeader, 1},
-    {0, EmfPlusRecordTypeEndOfFile, 1},
-    {0, EMR_EOF, 0},
+    {0, EMR_HEADER},
+    {0, EmfPlusRecordTypeHeader},
+    {0, EmfPlusRecordTypeEndOfFile},
+    {0, EMR_EOF},
     {0}
 };
 




More information about the wine-cvs mailing list