mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
Don't access internal object for NULL handle
svn path=/trunk/; revision=4402
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user