mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
- Server 2003 and later return the remote PEB in the TIB->ArbitraryUserPointer. Do so as well.
svn path=/trunk/; revision=59584
This commit is contained in:
parent
e4bfef2772
commit
4cd30e4431
1 changed files with 6 additions and 0 deletions
|
@ -838,6 +838,12 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
||||||
/* Protect against bad user-mode pointer */
|
/* Protect against bad user-mode pointer */
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
|
/* Hacky way of returning the PEB to the user-mode creator */
|
||||||
|
if ((Process->Peb) && (CurrentThread->Tcb.Teb))
|
||||||
|
{
|
||||||
|
CurrentThread->Tcb.Teb->NtTib.ArbitraryUserPointer = Process->Peb;
|
||||||
|
}
|
||||||
|
|
||||||
/* Save the process handle */
|
/* Save the process handle */
|
||||||
*ProcessHandle = hProcess;
|
*ProcessHandle = hProcess;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue