http://bugs.winehq.org/show_bug.cgi?id=16867
Summary: Issues with DD_STRUCT_COPY_BYSIZE Product: Wine Version: 1.1.12 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-ddraw AssignedTo: wine-bugs@winehq.org ReportedBy: spam@graph-ix.net
DD_STRUCT_COPY_BYSIZE does not properly copy all DDraw structs or is not properly called in at least one location of the Wine code. The example I found is in IDirectDrawImpl_GetCaps, where the ddsCaps within DDCAPS are not correctly copied. There are possibly more occurrences.
DD_STRUCT_COPY_BYSIZE is defined in ddraw_private.h
http://bugs.winehq.org/show_bug.cgi?id=16867
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2009-01-10 13:15:59 --- Have any sample code to show the problem? I don't see anything wrong with the way DD_STRUCT_COPY_BYSIZE is used in IDirectDrawImpl_GetCaps().
http://bugs.winehq.org/show_bug.cgi?id=16867
--- Comment #2 from Markus spam@graph-ix.net 2009-01-10 13:50:49 --- If you add caps.ddsCaps.dwCaps = 0; in front of the line if(DriverCaps) in IDirectDrawImpl_GetCaps and then look at the trace output of DDRAW_dump_DDCAPS a few lines below the addition, you'll see that the ddsCaps it prints is not 0.
http://bugs.winehq.org/show_bug.cgi?id=16867
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-01-10 15:03:32 --- Real code please! It's completely valid to get what you say if dwSize of the passed in DriverCaps is not set correctly.
http://bugs.winehq.org/show_bug.cgi?id=16867
Markus spam@graph-ix.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #4 from Markus spam@graph-ix.net 2009-01-10 16:01:39 --- It's my fault then and invalid. I had understood that Stefan D. on IRC that it was incorrect behavior and that I should file a bug.
http://bugs.winehq.org/show_bug.cgi?id=16867
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |
--- Comment #5 from Austin English austinenglish@gmail.com 2009-01-10 16:45:45 --- If Stefand say to file a bug, it's a valid bug. I'm pretty sure he knows the code in question pretty well :-).
http://bugs.winehq.org/show_bug.cgi?id=16867
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #6 from Vitaliy Margolen vitaliy@kievinfo.com 2009-01-10 20:35:35 --- (In reply to comment #5)
If Stefand say to file a bug, it's a valid bug. I'm pretty sure he knows the code in question pretty well :-).
REAL CODE PLEASE!!!
http://bugs.winehq.org/show_bug.cgi?id=16867
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Vitaliy Margolen vitaliy@kievinfo.com 2009-01-10 20:35:42 --- Closing
http://bugs.winehq.org/show_bug.cgi?id=16867
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-ddraw |directx-d3d