mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Enlarge window name buffer.
- Do not free Menu Item Info many times. - Remove r26508 hack. svn path=/trunk/; revision=26552
This commit is contained in:
@@ -735,7 +735,7 @@ CopyImage(
|
||||
|
||||
/* 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)
|
||||
{
|
||||
|
||||
@@ -242,7 +242,7 @@ static const WORD *DIALOG_GetControl32( const WORD *p, DLG_CONTROL_INFO *info,
|
||||
|
||||
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;
|
||||
|
||||
@@ -236,6 +236,7 @@ MenuCleanupRosMenuItemInfo(PROSMENUITEMINFO ItemInfo)
|
||||
if (ItemInfo->dwTypeData != NULL)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, ItemInfo->dwTypeData);
|
||||
ItemInfo->dwTypeData = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user