oleaut32: Only dump the EMF if tracing fixmes for the ole channel. (try2)
Francois Gouget
fgouget at free.fr
Wed Jan 7 05:23:30 CST 2009
---
Thanks to Vincent Povirk for noticing my previous patch was not setting
hr right. Let me know if the approach is wrong.
dlls/oleaut32/olepicture.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 3e6c3ea..d47ab36 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1933,14 +1933,17 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
hr = OLEPictureImpl_LoadEnhMetafile(This, xbuf, xread);
if (hr == S_OK) break;
- FIXME("Unknown magic %04x, %d read bytes:\n",magic,xread);
hr=E_FAIL;
- for (i=0;i<xread+8;i++) {
- if (i<8) MESSAGE("%02x\n",((unsigned char*)header)[i]);
- else MESSAGE("%02x\n",xbuf[i-8]);
- if (i % 10 == 9) MESSAGE("\n");
+ if (FIXME_ON(ole))
+ {
+ FIXME("Unknown magic %04x, %d read bytes:\n",magic,xread);
+ for (i=0;i<xread+8;i++) {
+ if (i<8) DPRINTF("%02x ",((unsigned char*)header)[i]);
+ else DPRINTF("%02x ",xbuf[i-8]);
+ if (i % 10 == 9) DPRINTF("\n");
+ }
+ DPRINTF("\n");
}
- MESSAGE("\n");
break;
}
}
--
1.5.6.5
More information about the wine-patches
mailing list