winex11.drv: ReadSelectionData should fail if the import function fails.

This commit is contained in:
Vincent Povirk 2010-03-17 11:39:35 -05:00 committed by Alexandre Julliard
parent 0498534b6b
commit 1eff311e8d
1 changed files with 4 additions and 1 deletions

View File

@ -2199,7 +2199,10 @@ static BOOL X11DRV_CLIPBOARD_ReadSelectionData(Display *display, LPWINE_CLIPDATA
HANDLE hData = lpData->lpFormat->lpDrvImportFunc(display, xe.xselection.requestor,
xe.xselection.property);
bRet = X11DRV_CLIPBOARD_InsertClipboardData(lpData->wFormatID, hData, 0, lpData->lpFormat, TRUE);
if (hData)
bRet = X11DRV_CLIPBOARD_InsertClipboardData(lpData->wFormatID, hData, 0, lpData->lpFormat, TRUE);
else
TRACE("Import function failed\n");
}
else
{