Author: gedmurphy
Date: Tue Dec 18 17:28:56 2007
New Revision: 31304
URL:
http://svn.reactos.org/svn/reactos?rev=31304&view=rev
Log:
return the icon bpp in the call to NtUserGetIconInfo
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c Tue Dec 18 17:28:56 2007
@@ -668,6 +668,24 @@
{
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
{