mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +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.MaximumLength = SafeFileNames.Length = (USHORT)cbStringSize - sizeof(WCHAR);
|
||||||
SafeFileNames.Buffer = ExAllocatePoolWithTag(PagedPool,
|
SafeFileNames.Buffer = ExAllocatePoolWithTag(PagedPool,
|
||||||
cbStringSize,
|
cbStringSize,
|
||||||
'RTSU');
|
TAG_USTR);
|
||||||
if (!SafeFileNames.Buffer)
|
if (!SafeFileNames.Buffer)
|
||||||
{
|
{
|
||||||
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
|
@ -926,7 +926,7 @@ NtGdiGetFontResourceInfoInternalW(
|
||||||
{
|
{
|
||||||
SetLastNtError(Status);
|
SetLastNtError(Status);
|
||||||
/* Free the string buffer for the safe filename */
|
/* Free the string buffer for the safe filename */
|
||||||
ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU');
|
ExFreePoolWithTag(SafeFileNames.Buffer, TAG_USTR);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -957,7 +957,7 @@ NtGdiGetFontResourceInfoInternalW(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free the string for the safe filenames */
|
/* Free the string for the safe filenames */
|
||||||
ExFreePoolWithTag(SafeFileNames.Buffer,'RTSU');
|
ExFreePoolWithTag(SafeFileNames.Buffer, TAG_USTR);
|
||||||
|
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define TAG_STRING ' RTS' /* String */
|
#define TAG_STRING ' RTS' /* String */
|
||||||
|
#define TAG_USTR 'RTSU' /* Unicode String */
|
||||||
#define TAG_HOOK 'ohsU' /* Hook */
|
#define TAG_HOOK 'ohsU' /* Hook */
|
||||||
#define TAG_MENUITEM 'emsU' /* Menu item */
|
#define TAG_MENUITEM 'emsU' /* Menu item */
|
||||||
#define TAG_MSG 'GSEM' /* Message */
|
#define TAG_MSG 'GSEM' /* Message */
|
||||||
|
|
Loading…
Reference in a new issue