Module: wine Branch: master Commit: 33534916a3439e1df8910bc8ebbf096f19de854e URL: http://source.winehq.org/git/wine.git/?a=commit;h=33534916a3439e1df8910bc8eb...
Author: Austin Lund austin.lund@gmail.com Date: Tue Jun 2 15:57:37 2009 +1000
riched20: If DataObjectImpl_EnumFormatEtc returns E_NOTIMPL then ensure that returned pointers are nulled.
---
dlls/riched20/clipboard.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/clipboard.c b/dlls/riched20/clipboard.c index 648f0c5..cf4fe4b 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);