wow64: Map the parent process handle in NtCreateUserProcess().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-12-02 09:59:01 +01:00
parent 3016a34f3e
commit be6ccdf51c
1 changed files with 4 additions and 0 deletions

View File

@ -213,6 +213,10 @@ static PS_ATTRIBUTE_LIST *ps_attributes_32to64( PS_ATTRIBUTE_LIST **attr, const
LongToHandle( ((LONG *)ULongToPtr(attr32->Attributes[i].Value))[j] );
}
break;
case PS_ATTRIBUTE_PARENT_PROCESS:
ret->Attributes[i].Size = sizeof(HANDLE);
ret->Attributes[i].ValuePtr = LongToHandle( attr32->Attributes[i].Value );
break;
case PS_ATTRIBUTE_CLIENT_ID:
ret->Attributes[i].Size = sizeof(CLIENT_ID);
ret->Attributes[i].ValuePtr = Wow64AllocateTemp( ret->Attributes[i].Size );