diff --git a/winpr/libwinpr/clipboard/clipboard.c b/winpr/libwinpr/clipboard/clipboard.c index 2e88d75bb..0d236e8da 100644 --- a/winpr/libwinpr/clipboard/clipboard.c +++ b/winpr/libwinpr/clipboard/clipboard.c @@ -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];