mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 12:03:29 +00:00
debug
This commit is contained in:
parent
3cae2d21ff
commit
2b8dee6e68
3 changed files with 13 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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++;
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue