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
4bb5d3ab
Commit
4bb5d3ab
authored
Oct 25, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed the way length of msvcrt runtime info is passed
- always return a NULL runtime info buffer in child if parent's runtime info is NULL - fixed typo in startupinfo size
parent
c67bfb28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
environ.c
dlls/kernel/environ.c
+5
-5
process.c
dlls/kernel/process.c
+2
-1
env.c
dlls/ntdll/env.c
+2
-1
No files found.
dlls/kernel/environ.c
View file @
4bb5d3ab
...
...
@@ -439,13 +439,13 @@ void ENV_CopyStartupInformation(void)
startup_infoW
.
dwFillAttribute
=
rupp
->
dwFillAttribute
;
startup_infoW
.
dwFlags
=
rupp
->
dwFlags
;
startup_infoW
.
wShowWindow
=
rupp
->
wShowWindow
;
startup_infoW
.
cbReserved2
=
rupp
->
RuntimeInfo
.
Length
;
startup_infoW
.
lpReserved2
=
(
void
*
)
rupp
->
RuntimeInfo
.
Buffer
;
startup_infoW
.
cbReserved2
=
rupp
->
RuntimeInfo
.
Maximum
Length
;
startup_infoW
.
lpReserved2
=
rupp
->
RuntimeInfo
.
MaximumLength
?
(
void
*
)
rupp
->
RuntimeInfo
.
Buffer
:
NULL
;
startup_infoW
.
hStdInput
=
rupp
->
hStdInput
;
startup_infoW
.
hStdOutput
=
rupp
->
hStdOutput
;
startup_infoW
.
hStdError
=
rupp
->
hStdError
;
startup_infoA
.
cb
=
sizeof
(
startup_info
W
);
startup_infoA
.
cb
=
sizeof
(
startup_info
A
);
startup_infoA
.
lpReserved
=
NULL
;
startup_infoA
.
lpDesktop
=
(
rupp
->
Desktop
.
Length
&&
RtlUnicodeStringToAnsiString
(
&
ansi
,
&
rupp
->
Desktop
,
TRUE
)
==
STATUS_SUCCESS
)
?
...
...
@@ -462,8 +462,8 @@ void ENV_CopyStartupInformation(void)
startup_infoA
.
dwFillAttribute
=
rupp
->
dwFillAttribute
;
startup_infoA
.
dwFlags
=
rupp
->
dwFlags
;
startup_infoA
.
wShowWindow
=
rupp
->
wShowWindow
;
startup_infoA
.
cbReserved2
=
rupp
->
RuntimeInfo
.
Length
;
startup_infoA
.
lpReserved2
=
(
void
*
)
rupp
->
RuntimeInfo
.
Buffer
;
startup_infoA
.
cbReserved2
=
rupp
->
RuntimeInfo
.
Maximum
Length
;
startup_infoA
.
lpReserved2
=
rupp
->
RuntimeInfo
.
MaximumLength
?
(
void
*
)
rupp
->
RuntimeInfo
.
Buffer
:
NULL
;
startup_infoA
.
hStdInput
=
rupp
->
hStdInput
;
startup_infoA
.
hStdOutput
=
rupp
->
hStdOutput
;
startup_infoA
.
hStdError
=
rupp
->
hStdError
;
...
...
dlls/kernel/process.c
View file @
4bb5d3ab
...
...
@@ -1408,7 +1408,8 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
if
(
startup
->
lpTitle
)
RtlInitUnicodeString
(
&
title
,
startup
->
lpTitle
);
if
(
startup
->
lpReserved2
&&
startup
->
cbReserved2
)
{
runtime
.
Length
=
runtime
.
MaximumLength
=
startup
->
cbReserved2
;
runtime
.
Length
=
0
;
runtime
.
MaximumLength
=
startup
->
cbReserved2
;
runtime
.
Buffer
=
(
WCHAR
*
)
startup
->
lpReserved2
;
}
...
...
dlls/ntdll/env.c
View file @
4bb5d3ab
...
...
@@ -418,6 +418,7 @@ NTSTATUS WINAPI RtlCreateProcessParameters( RTL_USER_PROCESS_PARAMETERS **result
{
static
const
WCHAR
empty
[]
=
{
0
};
static
const
UNICODE_STRING
empty_str
=
{
0
,
sizeof
(
empty
),
(
WCHAR
*
)
empty
};
static
const
UNICODE_STRING
null_str
=
{
0
,
0
,
NULL
};
const
RTL_USER_PROCESS_PARAMETERS
*
cur_params
;
ULONG
size
,
total_size
;
...
...
@@ -433,7 +434,7 @@ NTSTATUS WINAPI RtlCreateProcessParameters( RTL_USER_PROCESS_PARAMETERS **result
if
(
!
WindowTitle
)
WindowTitle
=
&
empty_str
;
if
(
!
Desktop
)
Desktop
=
&
empty_str
;
if
(
!
ShellInfo
)
ShellInfo
=
&
empty_str
;
if
(
!
RuntimeInfo
)
RuntimeInfo
=
&
empty
_str
;
if
(
!
RuntimeInfo
)
RuntimeInfo
=
&
null
_str
;
size
=
(
sizeof
(
RTL_USER_PROCESS_PARAMETERS
)
+
ImagePathName
->
MaximumLength
...
...
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