mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[WIN32K:NTGDI] Correctly interpret RtlCreateUnicodeString return value. CORE-14271
This commit is contained in:
parent
6e750d189a
commit
7f687154a0
1 changed files with 5 additions and 3 deletions
|
@ -323,6 +323,7 @@ IntLoadFontSubstList(PLIST_ENTRY pHead)
|
|||
BYTE CharSets[FONTSUBST_FROM_AND_TO];
|
||||
LPWSTR pch;
|
||||
PFONTSUBST_ENTRY pEntry;
|
||||
BOOLEAN Success;
|
||||
|
||||
/* the FontSubstitutes registry key */
|
||||
static UNICODE_STRING FontSubstKey =
|
||||
|
@ -367,10 +368,11 @@ IntLoadFontSubstList(PLIST_ENTRY pHead)
|
|||
pInfo = (PKEY_VALUE_FULL_INFORMATION)InfoBuffer;
|
||||
Length = pInfo->NameLength / sizeof(WCHAR);
|
||||
pInfo->Name[Length] = UNICODE_NULL; /* truncate */
|
||||
Status = RtlCreateUnicodeString(&FromW, pInfo->Name);
|
||||
if (!NT_SUCCESS(Status))
|
||||
Success = RtlCreateUnicodeString(&FromW, pInfo->Name);
|
||||
if (!Success)
|
||||
{
|
||||
DPRINT("RtlCreateUnicodeString failed: 0x%08X\n", Status);
|
||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
DPRINT("RtlCreateUnicodeString failed\n");
|
||||
break; /* failure */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue