- Fix a Kernel Assert in EngAllocMem called from brush and add a tag.

svn path=/trunk/; revision=36653
This commit is contained in:
James Tabor 2008-10-05 11:38:01 +00:00
parent 18edd07564
commit 47e5a8aad7

View file

@ -524,7 +524,7 @@ NtGdiCreateDIBBrush(
NTSTATUS Status = STATUS_SUCCESS;
HBRUSH hBrush;
SafeBitmapInfoAndData = EngAllocMem(0, BitmapInfoSize, 0);
SafeBitmapInfoAndData = EngAllocMem(FL_ZERO_MEMORY, BitmapInfoSize, TAG_DIB);
if (SafeBitmapInfoAndData == NULL)
{
SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY);