ntdll: Fix rounding the length of the runtime info parameter.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50723 Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
305cb8af27
commit
4dad4315d5
|
@ -1622,8 +1622,14 @@ void init_startup_info(void)
|
|||
copy_unicode_string( &src, &dst, ¶ms->WindowTitle, info->title_len );
|
||||
copy_unicode_string( &src, &dst, ¶ms->Desktop, info->desktop_len );
|
||||
copy_unicode_string( &src, &dst, ¶ms->ShellInfo, info->shellinfo_len );
|
||||
copy_unicode_string( &src, &dst, ¶ms->RuntimeInfo, info->runtime_len );
|
||||
params->RuntimeInfo.MaximumLength = params->RuntimeInfo.Length; /* runtime info isn't a real string */
|
||||
/* 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;
|
||||
dst += copy_environment( dst, src );
|
||||
memcpy( dst, dyn_env, dyn_size );
|
||||
|
|
Loading…
Reference in New Issue