From 238be0b59ce7288f2e00ac624a5cd3e7798badcb Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Wed, 24 May 2006 19:34:53 +0000 Subject: [PATCH] Do not create crash/bsod log when u logoff or shutdown of ReactOS. svn path=/trunk/; revision=22014 --- reactos/subsystems/win32/win32k/eng/xlate.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/eng/xlate.c b/reactos/subsystems/win32/win32k/eng/xlate.c index 7dd1c05916f..43aec9f91f7 100644 --- a/reactos/subsystems/win32/win32k/eng/xlate.c +++ b/reactos/subsystems/win32/win32k/eng/xlate.c @@ -275,10 +275,15 @@ IntEngCreateXlate(USHORT DestPalType, USHORT SourcePalType, */ end: + if (PaletteDest != NULL) + if (PaletteDest != PaletteSource) + if (DestPalGDI != NULL) + PALETTE_UnlockPalette(DestPalGDI); + + if (PaletteSource != NULL) PALETTE_UnlockPalette(SourcePalGDI); - if (PaletteDest != NULL && PaletteDest != PaletteSource) - PALETTE_UnlockPalette(DestPalGDI); + return XlateObj; }