From 72e6fde566725d8507387ffdc01e97c2a6fb38f6 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 6 Jun 2008 23:09:42 +0000 Subject: [PATCH] BugFix : NtGdiBitblt follow member BitmapDest and BitmapSrc one of them can be NULL in NtGdiBitBlt logic so do not try access members in null pointer svn path=/trunk/; revision=33872 --- reactos/subsystems/win32/win32k/objects/bitblt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/bitblt.c b/reactos/subsystems/win32/win32k/objects/bitblt.c index 6e492f77ef4..a50b0413ce7 100644 --- a/reactos/subsystems/win32/win32k/objects/bitblt.c +++ b/reactos/subsystems/win32/win32k/objects/bitblt.c @@ -301,7 +301,7 @@ NtGdiBitBlt( } /* Perform the bitblt operation */ - Status = IntEngBitBlt(&BitmapDest->SurfObj, &BitmapSrc->SurfObj, NULL, + Status = IntEngBitBlt( BitmapDest ? &BitmapDest->SurfObj : NULL, BitmapSrc ? &BitmapSrc->SurfObj : NULL, NULL, DCDest->CombinedClip, XlateObj, &DestRect, &SourcePoint, NULL, BrushObj ? &BrushInst.BrushObject : NULL,