May I ask why those if (!Info) checks are required? To me it makes no sense to call those APIs with the cruicial, mandatory working (and in one case the only) parameter being NULL, and I would put an ASSERT (Info) there to catch bad callers and fix them.
WBR, Aleksey.
On Nov 18, 2008, at 8:36 AM, jimtabor@svn.reactos.org wrote:
Author: jimtabor Date: Mon Nov 17 23:36:19 2008 New Revision: 37436
UINT FASTCALL DIB_BitmapMaxBitsSize( PBITMAPINFO Info, UINT ScanLines ) { UINT MaxBits = 0;
- if (!Info) return 0;
+UINT +FASTCALL +DIB_BitmapBitsSize( PBITMAPINFO Info ) +{
- UINT Ret;
- if (!Info) return 0;