http://bugs.winehq.org/show_bug.cgi?id=29573
--- Comment #7 from Henri Verbeet hverbeet@gmail.com 2012-09-04 12:19:42 CDT --- (In reply to comment #6)
How does the attached look? It looks like the DirectDrawEnumerateA callback is
Looks ok, though the adapter index is supposed to be unsigned, and I'd probably have done something like this for the loop in there:
for (adapter = 0;; ++adapter) { ... if (FAILED(hr)) break; ... }
incompatible with the DirectDrawEnumerateExA callback, should I maybe make an internal function for both routines to call so that it can handle both?
Maybe, although I'm not sure if it'll end up really being worth it. You could perhaps also do something similar to ddraw_surface4_EnumAttachedSurfaces() and similar functions.