mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[SHELL32] Ensure CIDLDataObject::GetData always returns an STGMEDIUM that is safe for use with ReleaseStgMedium
This commit is contained in:
committed by
Ioannis Adamopoulos
parent
ff61611aec
commit
6a6a28b634
@@ -236,6 +236,8 @@ HRESULT WINAPI CIDLDataObj::GetData(LPFORMATETC pformatetcIn, STGMEDIUM *pmedium
|
||||
GetClipboardFormatNameA (pformatetcIn->cfFormat, szTemp, 256);
|
||||
TRACE("(%p)->(%p %p format=%s)\n", this, pformatetcIn, pmedium, szTemp);
|
||||
}
|
||||
pmedium->hGlobal = NULL;
|
||||
pmedium->pUnkForRelease = NULL;
|
||||
for (int n = 0; n < m_Formats.GetSize(); ++n)
|
||||
{
|
||||
const FORMATETC& fmt = m_Formats[n];
|
||||
|
||||
Reference in New Issue
Block a user