[WIN32K]: it can be useful to have a TAG_USTR for unicode strings.

svn path=/trunk/; revision=71420
This commit is contained in:
Hermès Bélusca-Maïto 2016-05-26 23:16:10 +00:00
parent 97032dd167
commit c9493245e5
2 changed files with 4 additions and 3 deletions

View file

@ -900,7 +900,7 @@ NtGdiGetFontResourceInfoInternalW(
SafeFileNames.MaximumLength = SafeFileNames.Length = (USHORT)cbStringSize - sizeof(WCHAR);
SafeFileNames.Buffer = ExAllocatePoolWithTag(PagedPool,
cbStringSize,
'RTSU');
TAG_USTR);
if (!SafeFileNames.Buffer)
{
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
@ -926,7 +926,7 @@ NtGdiGetFontResourceInfoInternalW(
{
SetLastNtError(Status);
/* Free the string buffer for the safe filename */
ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU');
ExFreePoolWithTag(SafeFileNames.Buffer, TAG_USTR);
return FALSE;
}
@ -957,7 +957,7 @@ NtGdiGetFontResourceInfoInternalW(
}
/* Free the string for the safe filenames */
ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU');
ExFreePoolWithTag(SafeFileNames.Buffer, TAG_USTR);
return bRet;
}

View file

@ -1,6 +1,7 @@
#pragma once
#define TAG_STRING ' RTS' /* String */
#define TAG_USTR 'RTSU' /* Unicode String */
#define TAG_HOOK 'ohsU' /* Hook */
#define TAG_MENUITEM 'emsU' /* Menu item */
#define TAG_MSG 'GSEM' /* Message */