http://bugs.winehq.org/show_bug.cgi?id=29162
--- Comment #13 from Stefan Dösinger stefan@codeweavers.com 2011-12-06 12:16:14 CST --- (In reply to comment #12)
I made the ports again, using the new tests you added. I also modified the text for test failure to be more consistent and always include the interface in question; I combined your patch in mine due to this.
My test is missing at least one thing: Test pitch != width * format_bpp, especially pitch < width * format_bpp. I'll adjust my test and send it to wine-patches. Once my test is applied you can send your patches. This is easier than merging the changes into one patch: It keeps the patches smaller and the authorship clear.
I looked at the docs, and it seems that using DirectDrawCreateEx would fail with DDERR_DIRECTDRAWALREADYCREATED in this case -- there already is a DirectDraw created. So I left it out.
Hmm, it worked for me for the QueryInterface tests I recently wrote(not yet sent in). I guess the docs are wrong here, or probably it only works that way when one of the instances is in exclusive mode.