- Add clipboard support for copying/pasting bitmaps or Pixmaps between Wine
and native Linux applications.
- Respond to the MULTIPLE selection request target when Wine is the
selection owner.
- Relax type checking for TARGETS selection.
diff --git a/windows/clipboard.c b/windows/clipboard.c
index 1662bd3..18c7ddf 100644
--- a/windows/clipboard.c
+++ b/windows/clipboard.c
@@ -796,27 +796,28 @@
if( lpRender->wFormatID == CF_METAFILEPICT )
size = sizeof( METAFILEPICT16 );
else
- size = GlobalSize(lpRender->hData32);
+ size = GlobalSize(lpRender->hData32);
+
lpRender->hData16 = GlobalAlloc16(GMEM_ZEROINIT, size);
if( !lpRender->hData16 )
ERR("(%04X) -- not enough memory in 16b heap\n", wFormat);
else
{
- if( lpRender->wFormatID == CF_METAFILEPICT )
- {
- FIXME("\timplement function CopyMetaFilePict32to16\n");
- FIXME("\tin the appropriate file.\n");
-#ifdef SOMEONE_IMPLEMENTED_ME
- CopyMetaFilePict32to16( GlobalLock16(lpRender->hData16),
- GlobalLock(lpRender->hData32) );
-#endif
- }
- else
- {
- memcpy( GlobalLock16(lpRender->hData16),
- GlobalLock(lpRender->hData32),
- size );
- }
+ if( lpRender->wFormatID == CF_METAFILEPICT )
+ {
+ FIXME("\timplement function CopyMetaFilePict32to16\n");
+ FIXME("\tin the appropriate file.\n");
+ #ifdef SOMEONE_IMPLEMENTED_ME
+ CopyMetaFilePict32to16( GlobalLock16(lpRender->hData16),
+ GlobalLock(lpRender->hData32) );
+ #endif
+ }
+ else
+ {
+ memcpy( GlobalLock16(lpRender->hData16),
+ GlobalLock(lpRender->hData32),
+ size );
+ }
GlobalUnlock16(lpRender->hData16);
GlobalUnlock(lpRender->hData32);
}