gdi: In metafile test only print debug output if enabled.

This commit is contained in:
Alexandre Julliard 2006-03-31 21:03:41 +02:00
parent c20d6c4095
commit eb7ef83357
1 changed files with 6 additions and 0 deletions

View File

@ -612,6 +612,8 @@ static void dump_mf_bits (const HMETAFILE mf, const char *desc)
BYTE buf[MF_BUFSIZE];
UINT mfsize, i;
if (!winetest_debug) return;
mfsize = GetMetaFileBitsEx (mf, MF_BUFSIZE, buf);
ok (mfsize > 0, "%s: GetMetaFileBitsEx failed.\n", desc);
@ -710,6 +712,8 @@ static void dump_emf_bits(const HENHMETAFILE mf, const char *desc)
BYTE buf[MF_BUFSIZE];
UINT mfsize, i;
if (!winetest_debug) return;
mfsize = GetEnhMetaFileBits(mf, MF_BUFSIZE, buf);
ok (mfsize > 0, "%s: GetEnhMetaFileBits failed\n", desc);
@ -733,6 +737,8 @@ static void dump_emf_records(const HENHMETAFILE mf, const char *desc)
BYTE buf[MF_BUFSIZE];
UINT mfsize, offset;
if (!winetest_debug) return;
mfsize = GetEnhMetaFileBits(mf, MF_BUFSIZE, buf);
ok (mfsize > 0, "%s: GetEnhMetaFileBits error %ld\n", desc, GetLastError());