This commit is contained in:
Timo Kreuzer 2025-03-28 15:18:08 +02:00
parent 3cae2d21ff
commit 2b8dee6e68
3 changed files with 13 additions and 2 deletions

View file

@ -1316,7 +1316,7 @@ static BOOL alpha_blend_image( HIMAGELIST himl, HDC dest_dc, int dest_x, int des
void *bits, *mask_bits;
unsigned int *ptr;
int i, j;
__debugbreak();
if (!(hdc = CreateCompatibleDC( 0 ))) return FALSE;
if (!(info = heap_alloc( FIELD_OFFSET( BITMAPINFO, bmiColors[256] )))) goto done;
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);

View file

@ -3159,7 +3159,13 @@ TOOLBAR_AddStringW (TOOLBAR_INFO *infoPtr, HINSTANCE hInstance, LPARAM lParam)
break;
}
infoPtr->strings = ReAlloc(infoPtr->strings, sizeof(LPWSTR)*(infoPtr->nNumStrings+1));
PWSTR* new_strings = ReAlloc(infoPtr->strings, sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
if (!infoPtr->strings)
{
__debugbreak();
new_strings = ReAlloc(infoPtr->strings, sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
}
infoPtr->strings = new_strings;
Str_SetPtrW(&infoPtr->strings[infoPtr->nNumStrings], p);
infoPtr->nNumStrings++;

View file

@ -1437,6 +1437,8 @@ RtlCreateHeap(ULONG Flags,
NTSTATUS Status;
ULONG MaxBlockSize;
RtlpPageHeapEnabled = TRUE;
/* Check for a special heap */
if (RtlpPageHeapEnabled && !Addr && !Lock)
{
@ -1457,6 +1459,9 @@ RtlCreateHeap(ULONG Flags,
Flags &= HEAP_CREATE_VALID_MASK;
}
if (!Addr)
Flags |= HEAP_FLAG_PAGE_ALLOCS;
/* Capture parameters */
if (Parameters)
{