[5/6] ddraw: fix palette copying when destination palette is NULL

Alexander Dorofeyev alexd4 at inbox.lv
Sun Dec 30 20:04:02 CST 2007


I think there's a bug here. If pal == NULL that implies (because of preceding
code) that wine_pal == NULL. So it's setting a NULL wined3d palette to the
destination wined3d surface, yet increases reference counter on source palette.
I guess it should pass source wined3d palette here, to make any sense.
---
    dlls/ddraw/texture.c |    2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 106edc170059dcaca5893be48ab4567deb19f851.diff
Type: text/x-patch
Size: 588 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071230/8801eee5/attachment.bin 


More information about the wine-patches mailing list