http://bugs.winehq.org/show_bug.cgi?id=10086
--- Comment #6 from Vincent Povirk madewokherd@gmail.com 2008-05-14 16:40:31 --- Well, this is interesting.
http://www.libsdl.org/cgi/viewvc.cgi?view=rev&revision=1357
http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/video/windx5/SDL_d...
"I've tried playing with running SDL compiled for Windows with Wine (and WineX) under Linux. It didn't originally work too well, but I somehow managed to make it work. Most of the fixes was patches to Wine(X), but I also found something in video/windx5/SDL_dx5video.c which, as far as I can tell, actually is a bug in SDL. The result from the COM method Release, which returns the new reference count, is compared to DD_OK. Because QueryInterface is called immediately before, the reference count shouldn't be DD_OK (== 0)."