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
a7c5e241
Commit
a7c5e241
authored
Dec 01, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: GetStartupInfoW: set std handle only when USESTDHANDLES is set.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
3f814c42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
18 deletions
+11
-18
process.c
dlls/kernel32/tests/process.c
+11
-12
process.c
dlls/kernelbase/process.c
+0
-6
No files found.
dlls/kernel32/tests/process.c
View file @
a7c5e241
...
...
@@ -3254,42 +3254,42 @@ static void test_StdHandleInheritance(void)
{
/* all others handles type behave as H_DISK */
/* 0*/
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
/* all others handles type behave as H_DISK */
{
ARG_STARTUPINFO
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
{
ARG_STD
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
},
nothing_gui
[]
=
{
/* testing all types because of discrepancies */
/* 0*/
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_PIPE
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_PIPE
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_PIPE
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_PIPE
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_PIPE
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_PIPE
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CHAR
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_CHAR
},
/* 5*/
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CHAR
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_CHAR
,
.
is_todo
=
4
},
/* 5*/
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CHAR
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_CHAR
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
,
.
is_todo
=
7
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
,
.
is_todo
=
5
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
,
.
is_todo
=
1
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
/* all others handles type behave as H_DISK */
{
ARG_STARTUPINFO
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
{
ARG_STD
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
},
},
detached_cui
[]
=
{
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_CHAR
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
/* all others handles type behave as H_DISK */
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
},
detached_gui
[]
=
{
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_CONSOLE
,
HATTR_NULL
,
.
is_todo
=
7
,
.
is_broken
=
HATTR_TYPE
|
FILE_TYPE_UNKNOWN
},
/* all others handles type behave as H_DISK */
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
,
.
is_todo
=
4
},
{
ARG_STD
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_NULL
},
{
ARG_STARTUPINFO
|
ARG_CP_INHERIT
|
ARG_HANDLE_INHERIT
|
H_DISK
,
HATTR_TYPE
|
HATTR_INHERIT
|
FILE_TYPE_DISK
},
};
static
const
struct
...
...
@@ -5266,7 +5266,6 @@ static void test_startupinfo( void )
}
else
{
todo_wine
ok
(
startup_afterW
.
hStdInput
==
(
HANDLE
)
0x43210000
,
"Unexpected field value
\n
"
);
}
...
...
dlls/kernelbase/process.c
View file @
a7c5e241
...
...
@@ -1330,12 +1330,6 @@ void WINAPI DECLSPEC_HOTPATCH GetStartupInfoW( STARTUPINFOW *info )
info
->
hStdOutput
=
params
->
hStdOutput
;
info
->
hStdError
=
params
->
hStdError
;
}
else
{
info
->
hStdInput
=
NULL
;
info
->
hStdOutput
=
NULL
;
info
->
hStdError
=
NULL
;
}
RtlReleasePebLock
();
}
...
...
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