ole32: Avoid potential NULL pointer dereferences in a TRACE.

This commit is contained in:
Michael Stefaniuc 2010-05-26 01:27:58 +02:00 committed by Alexandre Julliard
parent 41809d5833
commit 162e420f0e
1 changed files with 2 additions and 2 deletions

View File

@ -1266,10 +1266,10 @@ static HRESULT WINAPI snapshot_GetDataHere(IDataObject *iface, FORMATETC *fmt,
ole_priv_data_entry *entry;
TYMED supported;
TRACE("(%p, %p {%s}, %p (tymed %x)\n", iface, fmt, dump_fmtetc(fmt), med, med->tymed);
if ( !fmt || !med ) return E_INVALIDARG;
TRACE("(%p, %p {%s}, %p (tymed %x)\n", iface, fmt, dump_fmtetc(fmt), med, med->tymed);
if ( !OpenClipboard(NULL)) return CLIPBRD_E_CANT_OPEN;
if(!This->data)