Michael Stefaniuc : ole32: Avoid potential NULL pointer dereferences in a TRACE.

Alexandre Julliard julliard at winehq.org
Wed May 26 11:49:07 CDT 2010


Module: wine
Branch: master
Commit: 162e420f0ef8c78d877113b72b74c580e2f750b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=162e420f0ef8c78d877113b72b74c580e2f750b5

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed May 26 01:27:58 2010 +0200

ole32: Avoid potential NULL pointer dereferences in a TRACE.

---

 dlls/ole32/clipboard.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c
index 2afc77e..3064bb0 100644
--- a/dlls/ole32/clipboard.c
+++ b/dlls/ole32/clipboard.c
@@ -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)




More information about the wine-cvs mailing list