winex11.drv: physDev cannot be NULL (Coverity).

This commit is contained in:
Marcus Meissner 2010-01-06 18:58:55 +01:00 committed by Alexandre Julliard
parent 9a53cb5263
commit 065fa22adc
1 changed files with 1 additions and 1 deletions

View File

@ -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;