mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 )))
|
(HAS_FORMAT( map, CF_TEXT ) || HAS_FORMAT( map, CF_OEMTEXT ) || HAS_FORMAT( map, CF_UNICODETEXT )))
|
||||||
{
|
{
|
||||||
void *data = memdup( &clipboard->lcid, sizeof(clipboard->lcid) );
|
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->seqno = clipboard->seqno++;
|
||||||
format->data = data;
|
format->data = data;
|
||||||
|
|
Loading…
Reference in a new issue