From 33534916a3439e1df8910bc8ebbf096f19de854e Mon Sep 17 00:00:00 2001 From: Austin Lund Date: Tue, 2 Jun 2009 15:57:37 +1000 Subject: [PATCH] riched20: If DataObjectImpl_EnumFormatEtc returns E_NOTIMPL then ensure that returned pointers are nulled. --- dlls/riched20/clipboard.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/riched20/clipboard.c b/dlls/riched20/clipboard.c index 648f0c5a12b..cf4fe4b37a9 100644 --- a/dlls/riched20/clipboard.c +++ b/dlls/riched20/clipboard.c @@ -282,6 +282,7 @@ static HRESULT WINAPI DataObjectImpl_EnumFormatEtc(IDataObject* iface, DWORD dwD if(dwDirection != DATADIR_GET) { FIXME("Unsupported direction: %d\n", dwDirection); /* WinXP riched20 also returns E_NOTIMPL in this case */ + *ppenumFormatEtc = NULL; return E_NOTIMPL; } return EnumFormatImpl_Create(This->fmtetc, This->fmtetc_cnt, ppenumFormatEtc);