kernel32: Make process traces aware of 64-bit.
This commit is contained in:
parent
7a80e97601
commit
a9a7d963c2
@ -2058,8 +2058,9 @@ BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW( LPCWSTR app_name, LPWSTR cmd_line,
|
|||||||
else switch (binary_info.type)
|
else switch (binary_info.type)
|
||||||
{
|
{
|
||||||
case BINARY_PE:
|
case BINARY_PE:
|
||||||
TRACE( "starting %s as Win32 binary (%p-%p)\n",
|
TRACE( "starting %s as Win%d binary (%p-%p)\n",
|
||||||
debugstr_w(name), binary_info.res_start, binary_info.res_end );
|
debugstr_w(name), (binary_info.flags & BINARY_FLAG_64BIT) ? 64 : 32,
|
||||||
|
binary_info.res_start, binary_info.res_end );
|
||||||
retv = create_process( hFile, name, tidy_cmdline, envW, cur_dir, process_attr, thread_attr,
|
retv = create_process( hFile, name, tidy_cmdline, envW, cur_dir, process_attr, thread_attr,
|
||||||
inherit, flags, startup_info, info, unixdir, &binary_info, FALSE );
|
inherit, flags, startup_info, info, unixdir, &binary_info, FALSE );
|
||||||
break;
|
break;
|
||||||
@ -2146,8 +2147,9 @@ static void exec_process( LPCWSTR name )
|
|||||||
switch (binary_info.type)
|
switch (binary_info.type)
|
||||||
{
|
{
|
||||||
case BINARY_PE:
|
case BINARY_PE:
|
||||||
TRACE( "starting %s as Win32 binary (%p-%p)\n",
|
TRACE( "starting %s as Win%d binary (%p-%p)\n",
|
||||||
debugstr_w(name), binary_info.res_start, binary_info.res_end );
|
debugstr_w(name), (binary_info.flags & BINARY_FLAG_64BIT) ? 64 : 32,
|
||||||
|
binary_info.res_start, binary_info.res_end );
|
||||||
create_process( hFile, name, GetCommandLineW(), NULL, NULL, NULL, NULL,
|
create_process( hFile, name, GetCommandLineW(), NULL, NULL, NULL, NULL,
|
||||||
FALSE, 0, &startup_info, &info, NULL, &binary_info, TRUE );
|
FALSE, 0, &startup_info, &info, NULL, &binary_info, TRUE );
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user