http://bugs.winehq.org/show_bug.cgi?id=22987
--- Comment #3 from Vincent Povirk madewokherd@gmail.com 2010-05-31 17:07:18 --- Created an attachment (id=28469) --> (http://bugs.winehq.org/attachment.cgi?id=28469) readclipboard.c
This is the program I used to determine that kgrab is broken. To test it, I did the following:
1. Compile the program using the command at the top of the file.
2. Copy an image from kgrab.
3. Run: ./readclipboard TARGETS and verify that image/bmp is in the list.
4. Run: ./readclipboard image/bmp > test.bmp
Expected result: test.bmp contains the image you copied.
Actual result: test.bmp is an empty file.
If this gives you a valid BMP image, this is a Wine bug. Otherwise, it is a bug in the program copying the image.