On Sat, 3 Dec 2005 09:44:07 +0100, you wrote:
This is wrong. No user program should modify our internal data. I think you need to copy this data into heap before passing it to the app. You should make simple test to check if the data returned on windows is within heap or not.
Yeah, I agree with Vitaliy here... We were alread hit multiple times by this bug in other cases: Wine should never send to the application actual private data as many games expect to use these values to do actual processing.
OK, I have tested this under Windows. The data is protected and the access violation is handled by DirectDrawEnumerate:
Changelog: dlls/ddraw : main.c, Makefile.in Catch access violations when calling the DirectDrawEnumerateProc.
Rein.