- Do not free Menu Item Info many times.
- Remove r26508 hack.
svn path=/trunk/; revision=26552
/* Fill in biSizeImage */
GetDIBits(dc, hnd, 0, ds.dsBm.bmHeight, NULL, bi, DIB_RGB_COLORS);
- bits = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, bi->bmiHeader.biSizeImage * 2); /* HACK */
+ bits = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, bi->bmiHeader.biSizeImage);
if (bits)
{
if (GET_WORD(p) == 0xffff) /* Is it an integer id? */
{
- info->windowName = HeapAlloc( GetProcessHeap(), 0, 10 );
+ info->windowName = HeapAlloc( GetProcessHeap(), 0, sizeof(L"#65535") );
swprintf((LPWSTR)info->windowName, L"#%d", GET_WORD(p + 1));
info->windowNameFree = TRUE;
p += 2;
if (ItemInfo->dwTypeData != NULL)
{
HeapFree(GetProcessHeap(), 0, ItemInfo->dwTypeData);
+ ItemInfo->dwTypeData = NULL;
}
}