return the icon bpp in the call to NtUserGetIconInfo

svn path=/trunk/; revision=31304
This commit is contained in:
Ged Murphy 2007-12-18 14:28:56 +00:00
parent 997bebd3b8
commit da6e62e245

View file

@ -668,6 +668,24 @@ NtUserGetIconInfo(
{
ProbeForWrite(IconInfo, sizeof(ICONINFO), 1);
RtlCopyMemory(IconInfo, &ii, sizeof(ICONINFO));
if (pbpp)
{
PBITMAPOBJ bmp;
int colorBpp = 0;
ProbeForWrite(pbpp, sizeof(DWORD), 1);
bmp = BITMAPOBJ_LockBitmap(CurIcon->IconInfo.hbmColor);
if (bmp)
{
colorBpp = BitsPerFormat(bmp->SurfObj.iBitmapFormat);
BITMAPOBJ_UnlockBitmap(bmp);
}
RtlCopyMemory(pbpp, &colorBpp, sizeof(DWORD));
}
}
_SEH_HANDLE
{