mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
ntdll: Set correct MaximumLength when current directory path is longer than MAX_PATH.
This commit is contained in:
parent
7037201214
commit
7d2a210b35
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ NTSTATUS WINAPI RtlCreateProcessParametersEx( RTL_USER_PROCESS_PARAMETERS **resu
|
|||
curdir = cur_params->CurrentDirectory.DosPath;
|
||||
}
|
||||
else curdir = *CurrentDirectoryName;
|
||||
curdir.MaximumLength = MAX_PATH * sizeof(WCHAR);
|
||||
curdir.MaximumLength = max(curdir.Length, MAX_PATH * sizeof(WCHAR));
|
||||
|
||||
if (!CommandLine) CommandLine = ImagePathName;
|
||||
if (!Environment && cur_params) Environment = cur_params->Environment;
|
||||
|
|
Loading…
Reference in a new issue