mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[WIN32K]: it can be useful to have a TAG_USTR for unicode strings.
svn path=/trunk/; revision=71420
This commit is contained in:
parent
97032dd167
commit
c9493245e5
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue