- remove useless check.

svn path=/trunk/; revision=52365
This commit is contained in:
Jérôme Gardou 2011-06-19 13:11:39 +00:00
parent fbbd6d9218
commit 2f7d633262

View file

@ -679,8 +679,6 @@ SetDIBitsToDevice(
#endif
cjBmpScanSize = DIB_BitmapMaxBitsSize((LPBITMAPINFO)lpbmi, ScanLines);
if ( Bits )
{
pvSafeBits = RtlAllocateHeap(GetProcessHeap(), 0, cjBmpScanSize);
if (pvSafeBits)
{
@ -703,8 +701,6 @@ SetDIBitsToDevice(
DPRINT("SetDIBitsToDevice Allocate Bits %d!!!\n", cjBmpScanSize);
}
}
if (!GdiGetHandleUserData(hdc, GDI_OBJECT_TYPE_DC, (PVOID)&pDc_Attr))
{
SetLastError(ERROR_INVALID_PARAMETER);