ddraw: Fix palette handling in IDirect3DTexture_Load.
commited44f9d13003307d385d88f120bc7fe5d729332a
authorAlexander Dorofeyev <alexd4@inbox.lv>
Mon, 18 Feb 2008 01:36:46 +0000 (17 17:36 -0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 19 Feb 2008 12:39:17 +0000 (19 13:39 +0100)
tree916a5ed0101aa89a642f1ae1b1c5e9ee3ae481ab
parentddd0ec16701e53d1300e3321303888bb9c2d9bdc
ddraw: Fix palette handling in IDirect3DTexture_Load.

This fixes a potential refcounting problem and makes the function fail with NULL
destination texture's palette and non-NULL source palette like it does on native.
dlls/ddraw/texture.c