Commit eb7ef833 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent c20d6c40
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment