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
9e01af75
Commit
9e01af75
authored
Feb 26, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't set runtime info at all if it's empty.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b8f6852b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
env.c
dlls/ntdll/unix/env.c
+9
-6
No files found.
dlls/ntdll/unix/env.c
View file @
9e01af75
...
...
@@ -1622,12 +1622,15 @@ void init_startup_info(void)
copy_unicode_string
(
&
src
,
&
dst
,
&
params
->
WindowTitle
,
info
->
title_len
);
copy_unicode_string
(
&
src
,
&
dst
,
&
params
->
Desktop
,
info
->
desktop_len
);
copy_unicode_string
(
&
src
,
&
dst
,
&
params
->
ShellInfo
,
info
->
shellinfo_len
);
/* runtime info isn't a real string */
params
->
RuntimeInfo
.
MaximumLength
=
params
->
RuntimeInfo
.
Length
=
info
->
runtime_len
;
params
->
RuntimeInfo
.
Buffer
=
dst
;
memcpy
(
dst
,
src
,
info
->
runtime_len
);
src
+=
(
info
->
runtime_len
+
1
)
/
sizeof
(
WCHAR
);
dst
+=
(
info
->
runtime_len
+
1
)
/
sizeof
(
WCHAR
);
if
(
info
->
runtime_len
)
{
/* runtime info isn't a real string */
params
->
RuntimeInfo
.
MaximumLength
=
params
->
RuntimeInfo
.
Length
=
info
->
runtime_len
;
params
->
RuntimeInfo
.
Buffer
=
dst
;
memcpy
(
dst
,
src
,
info
->
runtime_len
);
src
+=
(
info
->
runtime_len
+
1
)
/
sizeof
(
WCHAR
);
dst
+=
(
info
->
runtime_len
+
1
)
/
sizeof
(
WCHAR
);
}
assert
(
(
char
*
)
src
==
(
char
*
)
info
+
info_size
);
params
->
Environment
=
dst
;
...
...
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