Commit b6b54fa1 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Handle error when memdup fails in synthesize_formats.

parent b5933916
......@@ -206,7 +206,7 @@ static int synthesize_formats( struct clipboard *clipboard )
(HAS_FORMAT( map, CF_TEXT ) || HAS_FORMAT( map, CF_OEMTEXT ) || HAS_FORMAT( map, CF_UNICODETEXT )))
{
void *data = memdup( &clipboard->lcid, sizeof(clipboard->lcid) );
if ((format = add_format( clipboard, CF_LOCALE )))
if (data && (format = add_format( clipboard, CF_LOCALE )))
{
format->seqno = clipboard->seqno++;
format->data = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment