Author: jimtabor
Date: Tue Aug 15 22:05:18 2006
New Revision: 23587
URL:
http://svn.reactos.org/svn/reactos?rev=23587&view=rev
Log:
Only lower word is used with dwTypeData as bitmap handle.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/menu.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/menu.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/menu.c Tue Aug 15 22:05:18 2006
@@ -788,12 +788,12 @@
}
if(lpmii->fType & MFT_BITMAP)
{
-// if(lpmii->hbmpItem)
+ if(lpmii->hbmpItem)
MenuItem->hbmpItem = lpmii->hbmpItem;
-// else
-// { /* Win 9x/Me stuff */
-// MenuItem->hbmpItem = (HBITMAP)lpmii->dwTypeData;
-// }
+ else
+ { /* Win 9x/Me stuff */
+ MenuItem->hbmpItem = (HBITMAP)((ULONG_PTR)(LOWORD(lpmii->dwTypeData)));
+ }
}
MenuItem->fType |= lpmii->fType;
}