mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[GDI32]
- remove useless check. svn path=/trunk/; revision=52365
This commit is contained in:
parent
fbbd6d9218
commit
2f7d633262
1 changed files with 20 additions and 24 deletions
|
@ -679,31 +679,27 @@ SetDIBitsToDevice(
|
|||
#endif
|
||||
cjBmpScanSize = DIB_BitmapMaxBitsSize((LPBITMAPINFO)lpbmi, ScanLines);
|
||||
|
||||
if ( Bits )
|
||||
{
|
||||
pvSafeBits = RtlAllocateHeap(GetProcessHeap(), 0, cjBmpScanSize);
|
||||
if (pvSafeBits)
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
RtlCopyMemory( pvSafeBits, Bits, cjBmpScanSize);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Hit = TRUE;
|
||||
}
|
||||
_SEH2_END
|
||||
pvSafeBits = RtlAllocateHeap(GetProcessHeap(), 0, cjBmpScanSize);
|
||||
if (pvSafeBits)
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
RtlCopyMemory( pvSafeBits, Bits, cjBmpScanSize);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Hit = TRUE;
|
||||
}
|
||||
_SEH2_END
|
||||
|
||||
if (Hit)
|
||||
{
|
||||
// We don't die, we continue on with a allocated safe pointer to kernel
|
||||
// space.....
|
||||
DPRINT1("SetDIBitsToDevice fail to read BitMapInfo: %x or Bits: %x & Size: %d\n",pConvertedInfo,Bits,cjBmpScanSize);
|
||||
}
|
||||
DPRINT("SetDIBitsToDevice Allocate Bits %d!!!\n", cjBmpScanSize);
|
||||
}
|
||||
|
||||
}
|
||||
if (Hit)
|
||||
{
|
||||
// We don't die, we continue on with a allocated safe pointer to kernel
|
||||
// space.....
|
||||
DPRINT1("SetDIBitsToDevice fail to read BitMapInfo: %x or Bits: %x & Size: %d\n",pConvertedInfo,Bits,cjBmpScanSize);
|
||||
}
|
||||
DPRINT("SetDIBitsToDevice Allocate Bits %d!!!\n", cjBmpScanSize);
|
||||
}
|
||||
|
||||
if (!GdiGetHandleUserData(hdc, GDI_OBJECT_TYPE_DC, (PVOID)&pDc_Attr))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue