Commit 2149bdfd authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wow64win: Convert parameters in place in wow64_NtUserCallWinProc.

parent e1ff3c8d
......@@ -615,19 +615,15 @@ static NTSTATUS WINAPI wow64_NtUserCallWinEventHook( void *arg, ULONG size )
static NTSTATUS WINAPI wow64_NtUserCallWinProc( void *arg, ULONG size )
{
struct win_proc_params *params = arg;
struct win_proc_params32 params32_buf, *params32 = &params32_buf;
struct win_proc_params32 *params32 = arg;
LRESULT result = 0;
void *ret_ptr;
ULONG ret_len;
NTSTATUS status;
if (size > sizeof(*params))
{
if (!(params32 = Wow64AllocateTemp( size - sizeof(*params) + sizeof(*params32) )))
return 0;
memcpy( params32 + 1, params + 1, size - sizeof(*params) );
}
win_proc_params_64to32( params, params32 );
if (size > sizeof(*params))
memmove( params32 + 1, params + 1, size - sizeof(*params) );
status = Wow64KiUserCallbackDispatcher( NtUserCallWinProc, params32,
size - sizeof(*params) + sizeof(*params32),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment