Skip to content
Snippets Groups Projects
Commit 46138d8e authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard
Browse files

Do not crash if the clipboard format is unknown.

parent ca97f7fd
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,7 @@ LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupFormat(WORD wID)
lpFormat = lpFormat->NextFormat;
}
if (!lpFormat->drvData) intern_atoms();
if (lpFormat && !lpFormat->drvData) intern_atoms();
return lpFormat;
}
......@@ -1656,7 +1656,7 @@ static BOOL X11DRV_CLIPBOARD_ReadClipboardData(UINT wFormat)
lpFormat = X11DRV_CLIPBOARD_LookupFormat(wFormat);
if (lpFormat->drvData)
if (lpFormat && lpFormat->drvData)
{
DWORD i;
UINT alias;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment