Commit 28aed6d9 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Initialize MaximumLength of the user params directory too.

parent 16aadb27
......@@ -1194,6 +1194,7 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
/* skip \??\ prefix */
curdir_str.Buffer = newdir.Buffer + 4;
curdir_str.Length = newdir.Length - 4 * sizeof(WCHAR);
curdir_str.MaximumLength = newdir.MaximumLength - 4 * sizeof(WCHAR);
}
else cur_dir = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment