Check for failed allocations. Spotted by Martin Bealby.
Modified: trunk/reactos/lib/user32/windows/icon.c
_____
Modified: trunk/reactos/lib/user32/windows/icon.c
--- trunk/reactos/lib/user32/windows/icon.c 2005-12-12 20:26:19 UTC
(rev 20113)
+++ trunk/reactos/lib/user32/windows/icon.c 2005-12-12 20:30:09 UTC
(rev 20114)
@@ -260,6 +260,10 @@
/* get an safe copy of the icon data */
SafeIconImage = RtlAllocateHeap(GetProcessHeap(), 0, cbIconBits);
+ if (SafeIconImage == NULL)
+ {
+ return NULL;
+ }
memcpy(SafeIconImage, pbIconBits, cbIconBits);
/* take into acount the origonal height was for both the AND and XOR
images */
Make start menu icons small until we have 24x24 icons.
Thanks to Martin for pointing out this simple change
Modified: trunk/reactos/subsys/system/explorer/taskbar/startmenu.cpp
_____
Modified: trunk/reactos/subsys/system/explorer/taskbar/startmenu.cpp
--- trunk/reactos/subsys/system/explorer/taskbar/startmenu.cpp
2005-12-12 19:49:08 UTC (rev 20107)
+++ trunk/reactos/subsys/system/explorer/taskbar/startmenu.cpp
2005-12-12 19:50:59 UTC (rev 20108)
@@ -1546,7 +1546,7 @@
StartMenuRoot::StartMenuRoot(HWND hwnd)
- : super(hwnd, true) ///@todo big icons in start menu root
+ : super(hwnd, false) ///@todo big icons in start menu root
{
#ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of
29.10.2003)
if (!g_Globals._SHRestricted ||
!SHRestricted(REST_NOCOMMONGROUPS))