[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: winex11.drv: Implement synthesizing the CF_ENHMETAFILE clipboard
From:       Vitaliy Margolen <wine-devel () kievinfo ! com>
Date:       2011-01-28 15:01:14
Message-ID: 4D42DA3A.60905 () kievinfo ! com
[Download RAW message or body]

On 01/27/2011 07:42 PM, Alexander Scott-Johns wrote:
>
>
>
>

> +                    FIXME("Called to synthesize unknown format 0x%08x\n", wFormatID);
Formats defined as decimal, so you should print it as decimal.

> +    if ((lpSource = X11DRV_CLIPBOARD_LookupData(CF_ENHMETAFILE)) && lpSource->hData)
> +    {
> +        bret = TRUE;
> +    }
Just do "return TRUE". It will remove one level of indentation.

> +                void *mf_bits = HeapAlloc(GetProcessHeap(), 0, size_mf_bits);
> +                GetMetaFileBitsEx(pmfp->hMF, size_mf_bits, mf_bits);
Please check if allocation succeeded.

Vitaliy.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic