[NTOS:INBV] Do not ignore RtlUnicodeStringToOemString return value

CORE-17637
This commit is contained in:
Jérôme Gardou 2021-06-17 17:49:40 +02:00 committed by Jérôme Gardou
parent 838abc475c
commit 230e6b9492

View file

@ -960,7 +960,12 @@ NtDisplayString(IN PUNICODE_STRING DisplayString)
Status = STATUS_NO_MEMORY;
goto Quit;
}
RtlUnicodeStringToOemString(&OemString, &CapturedString, FALSE);
Status = RtlUnicodeStringToOemString(&OemString, &CapturedString, FALSE);
if (!NT_SUCCESS(Status))
{
ExFreePoolWithTag(OemString.Buffer, TAG_OSTR);
goto Quit;
}
/* Display the string */
InbvDisplayString(OemString.Buffer);