ole32: Fixed some wrong conditions in OleFlushClipboard.
This commit is contained in:
parent
5c0f35a2aa
commit
a79fa50280
@ -914,7 +914,8 @@ static HRESULT OLEClipbrd_RenderFormat(IDataObject *pIDataObject, LPFORMATETC pF
|
|||||||
ILockBytes *ptrILockBytes = 0;
|
ILockBytes *ptrILockBytes = 0;
|
||||||
HGLOBAL hStorage = 0;
|
HGLOBAL hStorage = 0;
|
||||||
|
|
||||||
GetClipboardFormatNameA(pFormatetc->cfFormat, szFmtName, MAX_CLIPFORMAT_NAME);
|
if (!GetClipboardFormatNameA(pFormatetc->cfFormat, szFmtName, MAX_CLIPFORMAT_NAME))
|
||||||
|
szFmtName[0] = '\0';
|
||||||
|
|
||||||
/* If embed source */
|
/* If embed source */
|
||||||
if (!strcmp(szFmtName, CF_EMBEDSOURCE))
|
if (!strcmp(szFmtName, CF_EMBEDSOURCE))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user