mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[SHELL32] CDefaultContextMenu: Don't render a medium just to query if it is present
This commit is contained in:
parent
e45beb55f8
commit
1f362c1a5a
1 changed files with 1 additions and 6 deletions
|
@ -325,18 +325,13 @@ HasClipboardData()
|
|||
|
||||
if (SUCCEEDED(OleGetClipboard(&pDataObj)))
|
||||
{
|
||||
STGMEDIUM medium;
|
||||
FORMATETC formatetc;
|
||||
|
||||
TRACE("pDataObj=%p\n", pDataObj.p);
|
||||
|
||||
/* Set the FORMATETC structure*/
|
||||
InitFormatEtc(formatetc, RegisterClipboardFormatW(CFSTR_SHELLIDLIST), TYMED_HGLOBAL);
|
||||
if (SUCCEEDED(pDataObj->GetData(&formatetc, &medium)))
|
||||
{
|
||||
bRet = TRUE;
|
||||
ReleaseStgMedium(&medium);
|
||||
}
|
||||
bRet = SUCCEEDED(pDataObj->QueryGetData(&formatetc));
|
||||
}
|
||||
|
||||
return bRet;
|
||||
|
|
Loading…
Reference in a new issue