mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[KERNEL32]
- Correctly calculate the buffer size if the PATH variable is set but empty in BasepComputeProcessPath. Yes, this is a bug in Windows. CORE-11080 #resolve svn path=/trunk/; revision=71097
This commit is contained in:
@@ -210,9 +210,13 @@ BasepComputeProcessPath(IN PBASE_SEARCH_PATH_TYPE PathOrder,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Add the length of the PATH variable */
|
||||
/* Add the length of the PATH variable unless it's empty */
|
||||
ASSERT(!(EnvPath.Length & 1));
|
||||
PathLengthInBytes += (EnvPath.Length + sizeof(L';'));
|
||||
if (EnvPath.Length)
|
||||
{
|
||||
/* Reserve space for the variable and a semicolon */
|
||||
PathLengthInBytes += (EnvPath.Length + sizeof(L';'));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user