[PATCH] riched20: If DataObjectImpl_EnumFormatEtc returns E_NOTIMPL then ensure that returned pointers are nulled. Fixes bug 17837.
Austin Lund
austin.lund at gmail.com
Tue Jun 2 01:07:01 CDT 2009
-------------- next part --------------
From 8193cf9f2f7b68bc3859f59c136763bc016b1884 Mon Sep 17 00:00:00 2001
From: Austin Lund <austin.lund at gmail.com>
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. Fixes bug 17837.
---
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..ce556f2 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 = (IEnumFORMATETC *)NULL;
return E_NOTIMPL;
}
return EnumFormatImpl_Create(This->fmtetc, This->fmtetc_cnt, ppenumFormatEtc);
--
1.6.0.4
More information about the wine-patches
mailing list