ddraw: Fix refcounting of palettes

Stefan Dösinger stefan at codeweavers.com
Sun Mar 16 10:36:03 CDT 2008


Am Sonntag, 16. März 2008 14:44:37 schrieb bobbyg at gmx.net:
> This fixes a crash in a game called "Autobahnverfolgungsjagd Total"
> (not in AppDB).
I think it would be better to set pal = NULL if there is no wined3d palette 
returned a few lines above the place you're changing.

> While tracing this bug I noticed that
> IWineD3DBaseSurfaceImpl_GetPalette() does not call AddRef when
> returning the palette. Is that intentional?
This looks like it needs a fix



More information about the wine-devel mailing list