mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
server: Handle error when memdup fails in synthesize_formats.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b593391628
commit
b6b54fa14a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user