Return non-null value when a dc without a bitmap selected is passed to NtGdiSetDIBitsToDeviceInternal
svn path=/trunk/; revision=57028
goto Exit2;
}
+ ScanLines = min(ScanLines, abs(bmi->bmiHeader.biHeight) - StartScan);
+
pDC = DC_LockDc(hDC);
if (!pDC)
{
goto Exit2;
}
+ if (pDC->dctype == DC_TYPE_INFO)
+ {
+ DC_UnlockDc(pDC);
+ goto Exit2;
+ }
+
pSurf = pDC->dclevel.pSurface;
- if ((pDC->dctype == DC_TYPE_INFO) || !pSurf)
+ if (!pSurf)
{
DC_UnlockDc(pDC);
+ ret = ScanLines;
goto Exit2;
}
pDestSurf = &pSurf->SurfObj;
- ScanLines = min(ScanLines, abs(bmi->bmiHeader.biHeight) - StartScan);
-
rcDest.left = XDest;
rcDest.top = YDest;
if (bTransformCoordinates)