mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
Don't access internal object for NULL handle
svn path=/trunk/; revision=4402
This commit is contained in:
parent
a8c65e148b
commit
1e8cc39810
|
@ -198,8 +198,14 @@ XLATEOBJ *IntEngCreateXlate(USHORT DestPalType, USHORT SourcePalType,
|
|||
ASSERT( XlateObj );
|
||||
ASSERT( XlateGDI );
|
||||
|
||||
SourcePalGDI = (PALGDI*)AccessInternalObject((ULONG)PaletteSource);
|
||||
DestPalGDI = (PALGDI*)AccessInternalObject((ULONG)PaletteDest);
|
||||
if (NULL != PaletteSource)
|
||||
{
|
||||
SourcePalGDI = (PALGDI*)AccessInternalObject((ULONG)PaletteSource);
|
||||
}
|
||||
if (NULL != PaletteDest)
|
||||
{
|
||||
DestPalGDI = (PALGDI*)AccessInternalObject((ULONG)PaletteDest);
|
||||
}
|
||||
|
||||
XlateObj->iSrcType = SourcePalType;
|
||||
XlateObj->iDstType = DestPalType;
|
||||
|
|
Loading…
Reference in a new issue