mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
debug
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user