mirror of
https://github.com/reactos/reactos.git
synced 2025-06-07 02:10:36 +00:00
[NTOS:EX] Do not ignore RtlAnsiStringToUnicodeString return value
CORE-17637
This commit is contained in:
parent
376fbc5242
commit
93c0d324e0
1 changed files with 5 additions and 1 deletions
|
@ -1008,7 +1008,11 @@ QSI_DEF(SystemProcessInformation)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RtlInitAnsiString(&ImageName, Process->ImageFileName);
|
RtlInitAnsiString(&ImageName, Process->ImageFileName);
|
||||||
RtlAnsiStringToUnicodeString(&SpiCurrent->ImageName, &ImageName, FALSE);
|
Status = RtlAnsiStringToUnicodeString(&SpiCurrent->ImageName, &ImageName, FALSE);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
SpiCurrent->ImageName.Length = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue