Huw Davies : gdi32/tests: Add a test for the MFCOMMENT record's size.
Alexandre Julliard
julliard at winehq.org
Wed Jul 1 09:28:11 CDT 2009
Module: wine
Branch: master
Commit: 470e8fe2f438b2d91035ffa92d692efb91a8d701
URL: http://source.winehq.org/git/wine.git/?a=commit;h=470e8fe2f438b2d91035ffa92d692efb91a8d701
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Jul 1 12:14:40 2009 +0100
gdi32/tests: Add a test for the MFCOMMENT record's size.
---
dlls/gdi32/tests/metafile.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/metafile.c b/dlls/gdi32/tests/metafile.c
index 237f2f4..4cc7ca4 100644
--- a/dlls/gdi32/tests/metafile.c
+++ b/dlls/gdi32/tests/metafile.c
@@ -2348,7 +2348,9 @@ static void test_GetWinMetaFileBits(void)
if(rec_num == mfcomment_chunks - 1)
this_chunk_size = emf_size - rec_num * chunk_size;
- ok(rec->rdFunction == META_ESCAPE, "got %04x\n", rec->rdFunction);
+ ok(rec->rdSize == (this_chunk_size + 44) / 2, "%04x: got %04x expected %04x\n", rec_num, rec->rdSize, (this_chunk_size + 44) / 2);
+ ok(rec->rdFunction == META_ESCAPE, "%04x: got %04x\n", rec_num, rec->rdFunction);
+ if(rec->rdSize < (this_chunk_size + 44) / 2) break;
ok(rec->rdParm[0] == MFCOMMENT, "got %04x\n", rec->rdParm[0]);
ok(rec->rdParm[1] == this_chunk_size + 34, "got %04x %x\n", rec->rdParm[1], emf_size + 34);
ok(rec->rdParm[2] == 0x4d57, "got %04x\n", rec->rdParm[2]); /* WMFC */
More information about the wine-cvs
mailing list