mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
Merge branch 'ntdll-curdir' into 'master'
ntdll: Set correct MaximumLength when current directory path is longer than MAX_PATH. See merge request wine/wine!6535
This commit is contained in:
commit
7319f62f46
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,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