Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5828d7c1
Commit
5828d7c1
authored
Feb 27, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Adjust environment size for dynamic strings.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50732
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1e2b060e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
env.c
dlls/ntdll/unix/env.c
+2
-2
No files found.
dlls/ntdll/unix/env.c
View file @
5828d7c1
...
...
@@ -1591,7 +1591,6 @@ void init_startup_info(void)
params
->
AllocationSize
=
size
;
params
->
Size
=
size
;
params
->
Flags
=
PROCESS_PARAMS_FLAG_NORMALIZED
;
params
->
EnvironmentSize
=
env_size
;
params
->
DebugFlags
=
info
->
debug_flags
;
params
->
ConsoleHandle
=
wine_server_ptr_handle
(
info
->
console
);
params
->
ConsoleFlags
=
info
->
console_flags
;
...
...
@@ -1637,7 +1636,8 @@ void init_startup_info(void)
dst
+=
copy_environment
(
dst
,
src
);
memcpy
(
dst
,
dyn_env
,
dyn_size
);
dst
+=
dyn_size
/
sizeof
(
WCHAR
);
*
dst
=
0
;
*
dst
++
=
0
;
params
->
EnvironmentSize
=
(
dst
-
params
->
Environment
)
*
sizeof
(
WCHAR
);
free
(
dyn_env
);
free
(
info
);
NtCurrentTeb
()
->
Peb
->
ProcessParameters
=
params
;
...
...
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