Fixed missing NULL check.

This commit is contained in:
Armin Novak 2019-09-03 08:56:59 +02:00
parent 4ff24d074b
commit d69ad3ee59
1 changed files with 1 additions and 1 deletions

View File

@ -1447,7 +1447,7 @@ static UINT xf_cliprdr_server_format_data_response(CliprdrClientContext*
ClipboardGetFormatName(clipboard->system, srcFormatId));
}
if (nullTerminated)
if (nullTerminated && pDstData)
{
BYTE* nullTerminator = memchr(pDstData, '\0', DstSize);
if (nullTerminator)