kernel32: Initialize MaximumLength of the user params directory too.

This commit is contained in:
Alexandre Julliard 2007-12-23 13:54:31 +01:00
parent 16aadb2785
commit 28aed6d9c8
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}