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
c73bea16
Commit
c73bea16
authored
Aug 24, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't overwrite last byte of RuntimeInfo if odd number of bytes is used.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55287
parent
322c175c
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 @
c73bea16
...
...
@@ -1702,7 +1702,7 @@ static inline void dup_unicode_string( const UNICODE_STRING *src, WCHAR **dst, U
str
->
Length
=
src
->
Length
;
str
->
MaximumLength
=
src
->
MaximumLength
;
memcpy
(
*
dst
,
src
->
Buffer
,
src
->
MaximumLength
);
*
dst
+=
src
->
MaximumLength
/
sizeof
(
WCHAR
);
*
dst
+=
(
src
->
MaximumLength
+
1
)
/
sizeof
(
WCHAR
);
}
...
...
@@ -1798,7 +1798,7 @@ static void *build_wow64_parameters( const RTL_USER_PROCESS_PARAMETERS *params )
+
params
->
WindowTitle
.
MaximumLength
+
params
->
Desktop
.
MaximumLength
+
params
->
ShellInfo
.
MaximumLength
+
params
->
RuntimeInfo
.
MaximumLength
+
((
params
->
RuntimeInfo
.
MaximumLength
+
1
)
&
~
1
)
+
params
->
EnvironmentSize
);
status
=
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
(
void
**
)
&
wow64_params
,
0
,
&
size
,
...
...
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