Fix possible NULL pointer free. Fixes solitaire.

svn path=/branches/reactos-yarotows/; revision=49257
This commit is contained in:
Timo Kreuzer 2010-10-24 11:57:02 +00:00
parent 548559a3d5
commit 2eb1b02bc0

View file

@ -1264,7 +1264,7 @@ NtGdiCreateDIBitmapInternal(
hcmXform);
cleanup:
ExFreePoolWithTag(safeBits, TAG_DIB);
if (safeBits) ExFreePoolWithTag(safeBits, TAG_DIB);
return hbmResult;
}