mirror of
https://github.com/reactos/reactos.git
synced 2024-08-16 16:39:08 +00:00
[GDI32]
- remove useless check. svn path=/trunk/; revision=52365
This commit is contained in:
parent
fbbd6d9218
commit
2f7d633262
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue