ddraw: Refuse SetPalette and GetPalette on lost surfaces.
commit403d7c1dee11959dfaa781a14ed6f4c8fae90292
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 6 Jul 2014 16:06:43 +0000 (6 18:06 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Jul 2014 13:49:06 +0000 (7 15:49 +0200)
tree380283b5dfb460765c12a5d00b426a8ac51ab5c6
parent4b88d51bc9ce7c41c01a2c046f7b412eace5f380
ddraw: Refuse SetPalette and GetPalette on lost surfaces.

The SetPalette check is outside of ddraw_surface_set_palette to make
sure the palettes are properly freed when a lost P8 surface is destroyed.
dlls/ddraw/surface.c