mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
return the icon bpp in the call to NtUserGetIconInfo
svn path=/trunk/; revision=31304
This commit is contained in:
parent
997bebd3b8
commit
da6e62e245
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue