Fixed allocation size warning.
This commit is contained in:
parent
d525999a06
commit
abd0abf01b
@ -127,7 +127,7 @@ void cliprdr_process_format_list(cliprdrPlugin* cliprdr, wStream* s, UINT32 data
|
||||
{
|
||||
UINT32 index;
|
||||
int formatNameLength;
|
||||
CLIPRDR_FORMAT* formats;
|
||||
CLIPRDR_FORMAT* formats = NULL;
|
||||
CLIPRDR_FORMAT_LIST formatList;
|
||||
|
||||
formatList.msgType = CB_FORMAT_LIST;
|
||||
@ -151,6 +151,7 @@ void cliprdr_process_format_list(cliprdrPlugin* cliprdr, wStream* s, UINT32 data
|
||||
dataLen = formatList.dataLen;
|
||||
Stream_Rewind(s, dataLen);
|
||||
|
||||
if (formatList.numFormats)
|
||||
formats = (CLIPRDR_FORMAT*) calloc(formatList.numFormats, sizeof(CLIPRDR_FORMAT));
|
||||
if (!formats)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user