http://bugs.winehq.org/show_bug.cgi?id=17856
--- Comment #7 from Charles Davis cdavis@mines.edu 2009-11-12 19:09:19 --- I think I know what the problem is.
Both these programs pass 0 as the iPixelFormat. Yet iPixelFormat numbering--at least in winex11--starts at 1. (You can see in my log that winex11 starts creating pixel formats starting at index 1.) Therefore, 0 is invalid as an iPixelFormat. They probably passed this hoping to get the default PF. They work on Windows, so I'll bet that we need to support an iPixelFormat of 0.
I'll leave the rest to the experts. I may be somewhat familiar with OpenGL, but I don't consider myself a WGL expert (yet).