mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 02:42:59 +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;
|
void *bits, *mask_bits;
|
||||||
unsigned int *ptr;
|
unsigned int *ptr;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
__debugbreak();
|
||||||
if (!(hdc = CreateCompatibleDC( 0 ))) return FALSE;
|
if (!(hdc = CreateCompatibleDC( 0 ))) return FALSE;
|
||||||
if (!(info = heap_alloc( FIELD_OFFSET( BITMAPINFO, bmiColors[256] )))) goto done;
|
if (!(info = heap_alloc( FIELD_OFFSET( BITMAPINFO, bmiColors[256] )))) goto done;
|
||||||
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
||||||
|
|
|
@ -3159,7 +3159,13 @@ TOOLBAR_AddStringW (TOOLBAR_INFO *infoPtr, HINSTANCE hInstance, LPARAM lParam)
|
||||||
break;
|
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);
|
Str_SetPtrW(&infoPtr->strings[infoPtr->nNumStrings], p);
|
||||||
infoPtr->nNumStrings++;
|
infoPtr->nNumStrings++;
|
||||||
|
|
||||||
|
|
|
@ -1437,6 +1437,8 @@ RtlCreateHeap(ULONG Flags,
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
ULONG MaxBlockSize;
|
ULONG MaxBlockSize;
|
||||||
|
|
||||||
|
RtlpPageHeapEnabled = TRUE;
|
||||||
|
|
||||||
/* Check for a special heap */
|
/* Check for a special heap */
|
||||||
if (RtlpPageHeapEnabled && !Addr && !Lock)
|
if (RtlpPageHeapEnabled && !Addr && !Lock)
|
||||||
{
|
{
|
||||||
|
@ -1457,6 +1459,9 @@ RtlCreateHeap(ULONG Flags,
|
||||||
Flags &= HEAP_CREATE_VALID_MASK;
|
Flags &= HEAP_CREATE_VALID_MASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Addr)
|
||||||
|
Flags |= HEAP_FLAG_PAGE_ALLOCS;
|
||||||
|
|
||||||
/* Capture parameters */
|
/* Capture parameters */
|
||||||
if (Parameters)
|
if (Parameters)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue