mirror of
https://github.com/reactos/reactos.git
synced 2025-05-13 14:20:31 +00:00
- NtQueryInformationProcess with ProcessImageFileName query type:
Free the buffer allocated by SeLocateProcessImageName, and set return status if return buffer is too small (so caller will know to allocate more memory). Spotted by #3714 See issue #3714 for more details. svn path=/trunk/; revision=36136
This commit is contained in:
parent
f803831055
commit
37cea55dc6
1 changed files with 8 additions and 0 deletions
|
@ -426,6 +426,14 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
|
||||||
}
|
}
|
||||||
_SEH_END;
|
_SEH_END;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Buffer too small */
|
||||||
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Free the image path */
|
||||||
|
ExFreePool(ImageName);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue