Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dcf0bf1f
Commit
dcf0bf1f
authored
Jun 21, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Inherit ConsoleHandle only by CUI processes.
parent
5716a20d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
console.c
dlls/kernel32/tests/console.c
+1
-1
env.c
dlls/ntdll/unix/env.c
+3
-2
process.c
dlls/ntdll/unix/process.c
+2
-1
unix_private.h
dlls/ntdll/unix/unix_private.h
+1
-1
No files found.
dlls/kernel32/tests/console.c
View file @
dcf0bf1f
...
...
@@ -4951,7 +4951,7 @@ static void test_CreateProcessCUI(void)
},
with_console_tests
[]
=
{
/* 0*/
{
FALSE
,
0
,
NULL_STD
,
0
,
TRUE
},
/* 0*/
{
FALSE
,
0
,
NULL_STD
,
0
},
{
FALSE
,
DETACHED_PROCESS
,
NULL_STD
,
0
},
{
FALSE
,
CREATE_NEW_CONSOLE
,
NULL_STD
,
0
},
{
FALSE
,
CREATE_NO_WINDOW
,
NULL_STD
,
0
},
...
...
dlls/ntdll/unix/env.c
View file @
dcf0bf1f
...
...
@@ -2128,7 +2128,7 @@ void init_startup_info(void)
* create_startup_info
*/
void
*
create_startup_info
(
const
UNICODE_STRING
*
nt_image
,
const
RTL_USER_PROCESS_PARAMETERS
*
params
,
DWORD
*
info_size
)
const
pe_image_info_t
*
pe_info
,
DWORD
*
info_size
)
{
startup_info_t
*
info
;
UNICODE_STRING
dos_image
=
*
nt_image
;
...
...
@@ -2154,7 +2154,8 @@ void *create_startup_info( const UNICODE_STRING *nt_image, const RTL_USER_PROCES
info
->
debug_flags
=
params
->
DebugFlags
;
info
->
console_flags
=
params
->
ConsoleFlags
;
info
->
console
=
wine_server_obj_handle
(
params
->
ConsoleHandle
);
if
(
pe_info
->
subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_CUI
)
info
->
console
=
wine_server_obj_handle
(
params
->
ConsoleHandle
);
info
->
hstdin
=
wine_server_obj_handle
(
params
->
hStdInput
);
info
->
hstdout
=
wine_server_obj_handle
(
params
->
hStdOutput
);
info
->
hstderr
=
wine_server_obj_handle
(
params
->
hStdError
);
...
...
dlls/ntdll/unix/process.c
View file @
dcf0bf1f
...
...
@@ -802,7 +802,8 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
goto
done
;
}
if
(
!
machine
)
machine
=
pe_info
.
machine
;
if
(
!
(
startup_info
=
create_startup_info
(
attr
.
ObjectName
,
params
,
&
startup_info_size
)))
goto
done
;
if
(
!
(
startup_info
=
create_startup_info
(
attr
.
ObjectName
,
params
,
&
pe_info
,
&
startup_info_size
)))
goto
done
;
env_size
=
get_env_size
(
params
,
&
winedebug
);
if
((
status
=
alloc_object_attributes
(
process_attr
,
&
objattr
,
&
attr_len
)))
goto
done
;
...
...
dlls/ntdll/unix/unix_private.h
View file @
dcf0bf1f
...
...
@@ -172,7 +172,7 @@ extern struct ldt_copy __wine_ldt_copy DECLSPEC_HIDDEN;
extern
void
init_environment
(
int
argc
,
char
*
argv
[],
char
*
envp
[]
)
DECLSPEC_HIDDEN
;
extern
void
init_startup_info
(
void
)
DECLSPEC_HIDDEN
;
extern
void
*
create_startup_info
(
const
UNICODE_STRING
*
nt_image
,
const
RTL_USER_PROCESS_PARAMETERS
*
params
,
DWORD
*
info_size
)
DECLSPEC_HIDDEN
;
const
pe_image_info_t
*
pe_info
,
DWORD
*
info_size
)
DECLSPEC_HIDDEN
;
extern
char
**
build_envp
(
const
WCHAR
*
envW
)
DECLSPEC_HIDDEN
;
extern
char
*
get_alternate_wineloader
(
WORD
machine
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
exec_wineloader
(
char
**
argv
,
int
socketfd
,
const
pe_image_info_t
*
pe_info
)
DECLSPEC_HIDDEN
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment