* PURPOSE: Font
* PROGRAMMER:
*/
-
+
/** Includes ******************************************************************/
#include <win32k.h>
EngSetLastError(ERROR_INSUFFICIENT_BUFFER);
return 0;
}
- pKP = ExAllocatePoolWithTag(PagedPool, Count * sizeof(KERNINGPAIR), TAG_GDITEXT);
+ pKP = ExAllocatePoolWithTag(PagedPool, Count * sizeof(KERNINGPAIR), GDITAG_TEXT);
if (!pKP)
{
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
RtlCopyMemory(krnpair, pKP, Count * sizeof(KERNINGPAIR));
- ExFreePoolWithTag(pKP,TAG_GDITEXT);
+ ExFreePoolWithTag(pKP,GDITAG_TEXT);
}
return Count;
}
hFont = pdcattr->hlfntNew;
TextObj = RealizeFontInit(hFont);
-
+
if ( TextObj == NULL)
{
EngSetLastError(ERROR_INVALID_HANDLE);
if (Size && pgs)
{
- pgsSafe = ExAllocatePoolWithTag(PagedPool, Size, TAG_GDITEXT);
+ pgsSafe = ExAllocatePoolWithTag(PagedPool, Size, GDITAG_TEXT);
if (!pgsSafe)
{
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
Size = ftGetFontUnicodeRanges( FontGdi, pgsSafe);
if (Size)
- {
+ {
_SEH2_TRY
{
ProbeForWrite(pgs, Size, 1);
if (!NT_SUCCESS(Status)) Size = 0;
}
- ExFreePoolWithTag(pgsSafe, TAG_GDITEXT);
+ ExFreePoolWithTag(pgsSafe, GDITAG_TEXT);
}
Exit:
TEXTOBJ_UnlockText(TextObj);
if (UnsafeBuf && cjBuf)
{
- pvBuf = ExAllocatePoolWithTag(PagedPool, cjBuf, TAG_GDITEXT);
+ pvBuf = ExAllocatePoolWithTag(PagedPool, cjBuf, GDITAG_TEXT);
if (!pvBuf)
{
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
}
_SEH2_END
- ExFreePoolWithTag(pvBuf, TAG_GDITEXT);
+ ExFreePoolWithTag(pvBuf, GDITAG_TEXT);
}
if (pgm)
EngSetLastError(ERROR_INSUFFICIENT_BUFFER);
return 0;
}
- pKP = ExAllocatePoolWithTag(PagedPool, Count * sizeof(KERNINGPAIR), TAG_GDITEXT);
+ pKP = ExAllocatePoolWithTag(PagedPool, Count * sizeof(KERNINGPAIR), GDITAG_TEXT);
if (!pKP)
{
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
{
EngSetLastError(ERROR_INVALID_PARAMETER);
Count = 0;
- }
- ExFreePoolWithTag(pKP,TAG_GDITEXT);
+ }
+ ExFreePoolWithTag(pKP,GDITAG_TEXT);
}
return Count;
}
EngSetLastError(ERROR_INSUFFICIENT_BUFFER);
return 0;
}
- potm = ExAllocatePoolWithTag(PagedPool, Size, TAG_GDITEXT);
+ potm = ExAllocatePoolWithTag(PagedPool, Size, GDITAG_TEXT);
if (!potm)
{
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
Size = 0;
}
}
- ExFreePoolWithTag(potm,TAG_GDITEXT);
+ ExFreePoolWithTag(potm,GDITAG_TEXT);
return Size;
}