winex11.drv: Implement synthesizing the CF_ENHMETAFILE clipboard format from CF_METAFILEPICT.

Vitaliy Margolen wine-devel at kievinfo.com
Fri Jan 28 09:01:14 CST 2011


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.



More information about the wine-devel mailing list