From 2eb1b02bc0c6204d89847ef84aeac21e2051abe2 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 24 Oct 2010 11:57:02 +0000 Subject: [PATCH] [WIN32K] Fix possible NULL pointer free. Fixes solitaire. svn path=/branches/reactos-yarotows/; revision=49257 --- subsystems/win32/win32k/objects/dibobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsystems/win32/win32k/objects/dibobj.c b/subsystems/win32/win32k/objects/dibobj.c index e4caf1d6276..d2ca08a9668 100644 --- a/subsystems/win32/win32k/objects/dibobj.c +++ b/subsystems/win32/win32k/objects/dibobj.c @@ -1264,7 +1264,7 @@ NtGdiCreateDIBitmapInternal( hcmXform); cleanup: - ExFreePoolWithTag(safeBits, TAG_DIB); + if (safeBits) ExFreePoolWithTag(safeBits, TAG_DIB); return hbmResult; }