Marcus Meissner : winex11.drv: physDev cannot be NULL (Coverity).
Alexandre Julliard
julliard at winehq.org
Thu Jan 7 13:08:37 CST 2010
Module: wine
Branch: master
Commit: 065fa22adc39f2cd594ee5c8d9234d3a054af0de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=065fa22adc39f2cd594ee5c8d9234d3a054af0de
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Wed Jan 6 18:58:55 2010 +0100
winex11.drv: physDev cannot be NULL (Coverity).
---
dlls/winex11.drv/palette.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c
index 81bb73b..a02501f 100644
--- a/dlls/winex11.drv/palette.c
+++ b/dlls/winex11.drv/palette.c
@@ -881,7 +881,7 @@ static inline BOOL colour_is_brighter(RGBQUAD c1, RGBQUAD c2)
int X11DRV_PALETTE_ToPhysical( X11DRV_PDEVICE *physDev, COLORREF color )
{
WORD index = 0;
- HPALETTE hPal = physDev ? GetCurrentObject(physDev->hdc, OBJ_PAL ) : GetStockObject(DEFAULT_PALETTE);
+ HPALETTE hPal = GetCurrentObject(physDev->hdc, OBJ_PAL );
unsigned char spec_type = color >> 24;
int *mapping = palette_get_mapping( hPal );
PALETTEENTRY entry;
More information about the wine-cvs
mailing list