ole32: Fixed some wrong conditions in OleFlushClipboard.

This commit is contained in:
Eric Pouech 2006-10-22 21:48:49 +02:00 committed by Alexandre Julliard
parent 5c0f35a2aa
commit a79fa50280
1 changed files with 2 additions and 1 deletions

View File

@ -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))