Gracefully handle edge case where clipboard format name is NULL
@@ -89,6 +89,9 @@ static wClipboardFormat* ClipboardFindFormat(wClipboard* clipboard, UINT32 forma
{
for (index = 0; index < clipboard->numFormats; index++)
{
+ if (!clipboard->formats[index].formatName)
+ continue;
+
if (strcmp(name, clipboard->formats[index].formatName) == 0)
{
format = &clipboard->formats[index];
